home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / math / oleo_tar.z / oleo_tar
Tape Archive  |  1992-09-06  |  290.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory oleo/, mode 755 , uid 0 , gid 0 , size 0 , seconds 5164062367, user root, group root default
98% file data default
41% TrID Sybase iAnywhere database files default (weak)
36% TrID TAR - Tape ARchive (GNU) default
21% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU) default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6f 6c 65 6f 2f 00 00 00 | 00 00 00 00 00 00 00 00 |oleo/...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 20 |.... 7|55 . |
|00000070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 31 36 34 30 36 32 | 0 | 5164062|
|00000090| 33 36 37 20 20 20 37 37 | 34 33 00 20 35 00 00 00 |367 77|43. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6f 6c 65 6f 2f 6f 6c 65 | 6f 2e 63 64 69 66 00 00 |oleo/ole|o.cdif..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00000270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000280| 20 20 33 36 31 32 35 20 | 20 35 31 36 34 30 35 33 | 36125 | 5164053|
|00000290| 33 31 35 20 20 31 31 36 | 33 30 00 20 30 00 00 00 |315 116|30. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2a 2a 2a 20 4d 61 6b 65 | 66 69 6c 65 09 4d 6f 6e |*** Make|file.Mon|
|00000410| 20 4d 61 79 20 20 36 20 | 31 38 3a 33 33 3a 31 32 | May 6 |18:33:12|
|00000420| 20 31 39 39 31 0a 2d 2d | 2d 20 2e 2e 2f 6f 6c 65 | 1991.--|- ../ole|
|00000430| 6f 2f 4d 61 6b 65 66 69 | 6c 65 09 57 65 64 20 4d |o/Makefi|le.Wed M|
|00000440| 61 72 20 32 35 20 30 37 | 3a 34 35 3a 30 37 20 31 |ar 25 07|:45:07 1|
|00000450| 39 39 32 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |992.****|********|
|00000460| 2a 2a 2a 0a 2a 2a 2a 20 | 36 2c 31 33 20 2a 2a 2a |***.*** |6,13 ***|
|00000470| 2a 0a 20 20 23 59 41 43 | 43 3d 62 69 73 6f 6e 0a |*. #YAC|C=bison.|
|00000480| 20 20 0a 20 20 23 20 54 | 68 69 73 20 77 6f 72 6b | . # T|his work|
|00000490| 73 20 6f 6e 20 61 20 53 | 75 6e 34 2f 31 31 30 20 |s on a S|un4/110 |
|000004a0| 72 75 6e 6e 69 6e 67 20 | 3f 3f 3f 20 20 28 57 69 |running |??? (Wi|
|000004b0| 74 68 6f 75 74 20 44 4c | 44 29 0a 21 20 53 59 53 |thout DL|D).! SYS|
|000004c0| 20 3d 20 2d 44 49 5f 53 | 59 53 54 59 50 45 53 0a | = -DI_S|YSTYPES.|
|000004d0| 21 20 43 4f 4e 46 49 47 | 20 3d 20 2d 67 20 2d 44 |! CONFIG| = -g -D|
|000004e0| 54 45 53 54 0a 20 20 53 | 59 53 4c 49 42 20 3d 0a |TEST. S|YSLIB =.|
|000004f0| 20 20 53 59 53 4f 42 4a | 20 3d 20 24 28 58 4f 42 | SYSOBJ| = $(XOB|
|00000500| 4a 53 29 0a 20 20 59 41 | 43 43 20 3d 20 62 69 73 |JS). YA|CC = bis|
|00000510| 6f 6e 0a 2d 2d 2d 20 36 | 2c 31 33 20 2d 2d 2d 2d |on.--- 6|,13 ----|
|00000520| 0a 20 20 23 59 41 43 43 | 3d 62 69 73 6f 6e 0a 20 |. #YACC|=bison. |
|00000530| 20 0a 20 20 23 20 54 68 | 69 73 20 77 6f 72 6b 73 | . # Th|is works|
|00000540| 20 6f 6e 20 61 20 53 75 | 6e 34 2f 31 31 30 20 72 | on a Su|n4/110 r|
|00000550| 75 6e 6e 69 6e 67 20 3f | 3f 3f 20 20 28 57 69 74 |unning ?|?? (Wit|
|00000560| 68 6f 75 74 20 44 4c 44 | 29 0a 21 20 23 53 59 53 |hout DLD|).! #SYS|
|00000570| 20 3d 20 2d 44 49 5f 53 | 59 53 54 59 50 45 53 0a | = -DI_S|YSTYPES.|
|00000580| 21 20 43 4f 4e 46 49 47 | 20 3d 20 2d 73 74 61 74 |! CONFIG| = -stat|
|00000590| 69 63 20 2d 4f 33 20 2d | 57 61 6c 6c 0a 20 20 53 |ic -O3 -|Wall. S|
|000005a0| 59 53 4c 49 42 20 3d 0a | 20 20 53 59 53 4f 42 4a |YSLIB =.| SYSOBJ|
|000005b0| 20 3d 20 24 28 58 4f 42 | 4a 53 29 0a 20 20 59 41 | = $(XOB|JS). YA|
|000005c0| 43 43 20 3d 20 62 69 73 | 6f 6e 0a 2a 2a 2a 2a 2a |CC = bis|on.*****|
|000005d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2a 2a 2a 20 34 |********|**.*** 4|
|000005e0| 38 2c 36 32 20 2a 2a 2a | 2a 0a 20 20 23 53 59 53 |8,62 ***|*. #SYS|
|000005f0| 4c 49 42 20 3d 0a 20 20 | 23 53 59 53 4f 42 4a 20 |LIB =. |#SYSOBJ |
|00000600| 3d 20 24 28 58 4f 42 4a | 53 29 0a 20 20 0a 20 20 |= $(XOBJ|S). . |
|00000610| 23 20 54 68 69 73 20 73 | 68 6f 75 6c 64 20 62 65 |# This s|hould be|
|00000620| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00000630| 75 73 65 72 2d 63 6f 6e | 66 69 67 75 72 61 62 6c |user-con|figurabl|
|00000640| 65 20 73 74 75 66 66 2e | 0a 21 20 43 43 3d 63 63 |e stuff.|.! CC=cc|
|00000650| 0a 21 20 4f 4c 49 42 20 | 3d 20 20 2d 6c 63 75 72 |.! OLIB |= -lcur|
|00000660| 73 65 73 20 2d 6c 74 65 | 72 6d 6c 69 62 20 2d 6c |ses -lte|rmlib -l|
|00000670| 6d 0a 20 20 43 46 4c 41 | 47 53 20 3d 20 24 28 53 |m. CFLA|GS = $(S|
|00000680| 59 53 29 20 24 28 43 4f | 4e 46 49 47 29 0a 20 20 |YS) $(CO|NFIG). |
|00000690| 0a 20 20 4f 42 4a 53 20 | 3d 20 70 61 72 73 65 2e |. OBJS |= parse.|
|000006a0| 74 61 62 2e 6f 20 62 79 | 74 65 5f 63 6f 6d 70 69 |tab.o by|te_compi|
|000006b0| 6c 65 2e 6f 20 65 76 61 | 6c 2e 6f 20 63 65 6c 6c |le.o eva|l.o cell|
|000006c0| 2e 6f 20 72 65 66 2e 6f | 20 5c 0a 20 20 20 64 65 |.o ref.o| \. de|
|000006d0| 63 6f 6d 70 69 6c 65 2e | 6f 20 73 6f 72 74 2e 6f |compile.|o sort.o|
|000006e0| 20 72 65 67 69 6f 6e 73 | 2e 6f 20 75 74 69 6c 73 | regions|.o utils|
|000006f0| 2e 6f 20 6f 62 73 74 61 | 63 6b 2e 6f 20 5c 0a 20 |.o obsta|ck.o \. |
|00000700| 20 20 69 6f 5f 74 65 72 | 6d 2e 6f 20 69 6f 5f 64 | io_ter|m.o io_d|
|00000710| 69 73 70 2e 6f 20 69 6f | 5f 75 74 69 6c 73 2e 6f |isp.o io|_utils.o|
|00000720| 20 68 61 73 68 2e 6f 5c | 0a 21 20 20 70 61 6e 69 | hash.o\|.! pani|
|00000730| 63 2e 6f 20 5c 0a 20 20 | 20 24 28 53 59 53 4f 42 |c.o \. | $(SYSOB|
|00000740| 4a 29 0a 20 20 23 20 69 | 6e 63 6c 75 64 65 20 74 |J). # i|nclude t|
|00000750| 68 69 73 20 69 66 20 79 | 6f 75 72 20 64 6f 70 72 |his if y|our dopr|
|00000760| 6e 74 20 69 73 20 62 72 | 6f 6b 65 6e 20 28 73 6f |nt is br|oken (so|
|00000770| 6d 65 20 42 53 44 20 73 | 79 73 74 65 6d 73 29 0a |me BSD s|ystems).|
|00000780| 20 20 23 20 64 6f 70 72 | 6e 74 2e 6f 0a 2d 2d 2d | # dopr|nt.o.---|
|00000790| 20 34 38 2c 36 34 20 2d | 2d 2d 2d 0a 20 20 23 53 | 48,64 -|---. #S|
|000007a0| 59 53 4c 49 42 20 3d 0a | 20 20 23 53 59 53 4f 42 |YSLIB =.| #SYSOB|
|000007b0| 4a 20 3d 20 24 28 58 4f | 42 4a 53 29 0a 20 20 0a |J = $(XO|BJS). .|
|000007c0| 2b 20 53 59 53 3d 20 2d | 44 53 59 53 56 20 2d 44 |+ SYS= -|DSYSV -D|
|000007d0| 49 5f 53 59 53 54 59 50 | 45 53 20 2d 44 55 53 47 |I_SYSTYP|ES -DUSG|
|000007e0| 20 2d 44 50 4f 53 49 58 | 20 2d 44 4e 4f 5f 52 49 | -DPOSIX| -DNO_RI|
|000007f0| 4e 54 20 2d 44 4e 4f 5f | 55 41 4c 41 52 4d 20 2d |NT -DNO_|UALARM -|
|00000800| 44 41 30 5f 52 45 46 53 | 20 2d 44 42 49 54 53 5f |DA0_REFS| -DBITS_|
|00000810| 50 45 52 5f 43 45 4c 4c | 52 45 46 3d 31 36 0a 2b |PER_CELL|REF=16.+|
|00000820| 20 0a 20 20 23 20 54 68 | 69 73 20 73 68 6f 75 6c | . # Th|is shoul|
|00000830| 64 20 62 65 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |d be the| end of |
|00000840| 74 68 65 20 75 73 65 72 | 2d 63 6f 6e 66 69 67 75 |the user|-configu|
|00000850| 72 61 62 6c 65 20 73 74 | 75 66 66 2e 0a 21 20 43 |rable st|uff..! C|
|00000860| 43 3d 67 63 63 0a 21 20 | 4f 4c 49 42 20 3d 20 2d |C=gcc.! |OLIB = -|
|00000870| 6c 63 75 72 73 65 73 20 | 2d 6c 74 65 72 6d 63 61 |lcurses |-ltermca|
|00000880| 70 20 2d 6c 6d 0a 20 20 | 43 46 4c 41 47 53 20 3d |p -lm. |CFLAGS =|
|00000890| 20 24 28 53 59 53 29 20 | 24 28 43 4f 4e 46 49 47 | $(SYS) |$(CONFIG|
|000008a0| 29 0a 20 20 0a 20 20 4f | 42 4a 53 20 3d 20 70 61 |). . O|BJS = pa|
|000008b0| 72 73 65 2e 74 61 62 2e | 6f 20 62 79 74 65 5f 63 |rse.tab.|o byte_c|
|000008c0| 6f 6d 70 69 6c 65 2e 6f | 20 65 76 61 6c 2e 6f 20 |ompile.o| eval.o |
|000008d0| 63 65 6c 6c 2e 6f 20 72 | 65 66 2e 6f 20 5c 0a 20 |cell.o r|ef.o \. |
|000008e0| 20 20 64 65 63 6f 6d 70 | 69 6c 65 2e 6f 20 73 6f | decomp|ile.o so|
|000008f0| 72 74 2e 6f 20 72 65 67 | 69 6f 6e 73 2e 6f 20 75 |rt.o reg|ions.o u|
|00000900| 74 69 6c 73 2e 6f 20 6f | 62 73 74 61 63 6b 2e 6f |tils.o o|bstack.o|
|00000910| 20 5c 0a 20 20 20 69 6f | 5f 74 65 72 6d 2e 6f 20 | \. io|_term.o |
|00000920| 69 6f 5f 64 69 73 70 2e | 6f 20 69 6f 5f 75 74 69 |io_disp.|o io_uti|
|00000930| 6c 73 2e 6f 20 68 61 73 | 68 2e 6f 5c 0a 21 20 20 |ls.o has|h.o\.! |
|00000940| 70 61 6e 69 63 2e 6f 20 | 6c 69 6e 75 78 2e 6f 5c |panic.o |linux.o\|
|00000950| 0a 20 20 20 24 28 53 59 | 53 4f 42 4a 29 0a 20 20 |. $(SY|SOBJ). |
|00000960| 23 20 69 6e 63 6c 75 64 | 65 20 74 68 69 73 20 69 |# includ|e this i|
|00000970| 66 20 79 6f 75 72 20 64 | 6f 70 72 6e 74 20 69 73 |f your d|oprnt is|
|00000980| 20 62 72 6f 6b 65 6e 20 | 28 73 6f 6d 65 20 42 53 | broken |(some BS|
|00000990| 44 20 73 79 73 74 65 6d | 73 29 0a 20 20 23 20 64 |D system|s). # d|
|000009a0| 6f 70 72 6e 74 2e 6f 0a | 2a 2a 2a 2a 2a 2a 2a 2a |oprnt.o.|********|
|000009b0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 38 34 2c 39 |*******.|*** 84,9|
|000009c0| 30 20 2a 2a 2a 2a 0a 20 | 20 61 6c 6c 3a 09 6f 6c |0 ****. | all:.ol|
|000009d0| 65 6f 20 24 28 58 4f 42 | 4a 53 29 0a 20 20 09 0a |eo $(XOB|JS). ..|
|000009e0| 20 20 6f 6c 65 6f 3a 09 | 24 28 4f 42 4a 53 29 0a | oleo:.|$(OBJS).|
|000009f0| 21 20 09 24 28 43 43 29 | 20 2d 6f 20 6f 6c 65 6f |! .$(CC)| -o oleo|
|00000a00| 20 24 28 43 46 4c 41 47 | 53 29 20 24 28 4f 42 4a | $(CFLAG|S) $(OBJ|
|00000a10| 53 29 20 24 28 4f 4c 49 | 42 29 20 24 28 4c 49 42 |S) $(OLI|B) $(LIB|
|00000a20| 29 20 24 28 53 59 53 4c | 49 42 29 0a 20 20 0a 20 |) $(SYSL|IB). . |
|00000a30| 20 63 6c 65 61 6e 3a 0a | 20 20 09 72 6d 20 2d 66 | clean:.| .rm -f|
|00000a40| 20 24 28 4f 42 4a 53 29 | 20 24 28 58 4f 42 4a 53 | $(OBJS)| $(XOBJS|
|00000a50| 29 20 6f 6c 65 6f 20 63 | 6f 72 65 20 62 75 67 73 |) oleo c|ore bugs|
|00000a60| 20 70 61 72 73 65 2e 74 | 61 62 2e 63 0a 2d 2d 2d | parse.t|ab.c.---|
|00000a70| 20 38 36 2c 39 32 20 2d | 2d 2d 2d 0a 20 20 61 6c | 86,92 -|---. al|
|00000a80| 6c 3a 09 6f 6c 65 6f 20 | 24 28 58 4f 42 4a 53 29 |l:.oleo |$(XOBJS)|
|00000a90| 0a 20 20 09 0a 20 20 6f | 6c 65 6f 3a 09 24 28 4f |. .. o|leo:.$(O|
|00000aa0| 42 4a 53 29 0a 21 20 09 | 24 28 43 43 29 20 2d 6f |BJS).! .|$(CC) -o|
|00000ab0| 20 6f 6c 65 6f 20 24 28 | 43 46 4c 41 47 53 29 20 | oleo $(|CFLAGS) |
|00000ac0| 24 28 4f 42 4a 53 29 20 | 24 28 4f 4c 49 42 29 20 |$(OBJS) |$(OLIB) |
|00000ad0| 24 28 4c 49 42 29 20 24 | 28 53 59 53 4c 49 42 29 |$(LIB) $|(SYSLIB)|
|00000ae0| 20 0a 20 20 0a 20 20 63 | 6c 65 61 6e 3a 0a 20 20 | . . c|lean:. |
|00000af0| 09 72 6d 20 2d 66 20 24 | 28 4f 42 4a 53 29 20 24 |.rm -f $|(OBJS) $|
|00000b00| 28 58 4f 42 4a 53 29 20 | 6f 6c 65 6f 20 63 6f 72 |(XOBJS) |oleo cor|
|00000b10| 65 20 62 75 67 73 20 70 | 61 72 73 65 2e 74 61 62 |e bugs p|arse.tab|
|00000b20| 2e 63 0a 2a 2a 2a 20 62 | 79 74 65 5f 63 6f 6d 70 |.c.*** b|yte_comp|
|00000b30| 69 6c 65 2e 63 09 54 75 | 65 20 41 70 72 20 33 30 |ile.c.Tu|e Apr 30|
|00000b40| 20 31 35 3a 31 33 3a 30 | 37 20 31 39 39 31 0a 2d | 15:13:0|7 1991.-|
|00000b50| 2d 2d 20 2e 2e 2f 6f 6c | 65 6f 2f 62 79 74 65 5f |-- ../ol|eo/byte_|
|00000b60| 63 6f 6d 70 69 6c 65 2e | 63 09 54 75 65 20 4d 61 |compile.|c.Tue Ma|
|00000b70| 72 20 32 34 20 32 33 3a | 34 37 3a 34 37 20 31 39 |r 24 23:|47:47 19|
|00000b80| 39 32 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |92.*****|********|
|00000b90| 2a 2a 0a 2a 2a 2a 20 31 | 39 2c 32 34 20 2a 2a 2a |**.*** 1|9,24 ***|
|00000ba0| 2a 0a 2d 2d 2d 20 31 39 | 2c 32 37 20 2d 2d 2d 2d |*.--- 19|,27 ----|
|00000bb0| 0a 20 20 23 69 6e 63 6c | 75 64 65 20 22 66 75 6e |. #incl|ude "fun|
|00000bc0| 63 64 65 66 2e 68 22 0a | 20 20 0a 20 20 23 69 6e |cdef.h".| . #in|
|00000bd0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0a |clude <s|tdio.h>.|
|00000be0| 2b 20 23 69 6e 63 6c 75 | 64 65 20 3c 6d 61 74 68 |+ #inclu|de <math|
|00000bf0| 2e 68 3e 0a 2b 20 23 69 | 6e 63 6c 75 64 65 20 3c |.h>.+ #i|nclude <|
|00000c00| 73 74 64 6c 69 62 2e 68 | 3e 0a 2b 20 23 69 6e 63 |stdlib.h|>.+ #inc|
|00000c10| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|00000c20| 20 20 0a 20 20 23 64 65 | 66 69 6e 65 20 6f 62 73 | . #de|fine obs|
|00000c30| 74 61 63 6b 5f 63 68 75 | 6e 6b 5f 61 6c 6c 6f 63 |tack_chu|nk_alloc|
|00000c40| 20 63 6b 5f 6d 61 6c 6c | 6f 63 0a 20 20 23 64 65 | ck_mall|oc. #de|
|00000c50| 66 69 6e 65 20 6f 62 73 | 74 61 63 6b 5f 63 68 75 |fine obs|tack_chu|
|00000c60| 6e 6b 5f 66 72 65 65 20 | 66 72 65 65 0a 2a 2a 2a |nk_free |free.***|
|00000c70| 20 63 65 6c 6c 2e 63 09 | 57 65 64 20 4d 61 79 20 | cell.c.|Wed May |
|00000c80| 20 31 20 32 30 3a 33 35 | 3a 30 39 20 31 39 39 31 | 1 20:35|:09 1991|
|00000c90| 0a 2d 2d 2d 20 2e 2e 2f | 6f 6c 65 6f 2f 63 65 6c |.--- ../|oleo/cel|
|00000ca0| 6c 2e 63 09 57 65 64 20 | 4d 61 72 20 32 35 20 30 |l.c.Wed |Mar 25 0|
|00000cb0| 31 3a 33 35 3a 33 38 20 | 31 39 39 32 0a 2a 2a 2a |1:35:38 |1992.***|
|00000cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00000cd0| 20 31 39 2c 32 34 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 | 19,24 *|***.--- |
|00000ce0| 31 39 2c 32 35 20 2d 2d | 2d 2d 0a 20 20 23 69 6e |19,25 --|--. #in|
|00000cf0| 63 6c 75 64 65 20 22 66 | 75 6e 63 64 65 66 2e 68 |clude "f|uncdef.h|
|00000d00| 22 0a 20 20 0a 20 20 23 | 69 6e 63 6c 75 64 65 20 |". . #|include |
|00000d10| 3c 73 74 64 69 6f 2e 68 | 3e 0a 2b 20 23 69 6e 63 |<stdio.h|>.+ #inc|
|00000d20| 6c 75 64 65 20 3c 73 74 | 64 6c 69 62 2e 68 3e 0a |lude <st|dlib.h>.|
|00000d30| 20 20 0a 20 20 23 64 65 | 66 69 6e 65 20 6f 62 73 | . #de|fine obs|
|00000d40| 74 61 63 6b 5f 63 68 75 | 6e 6b 5f 61 6c 6c 6f 63 |tack_chu|nk_alloc|
|00000d50| 20 63 6b 5f 6d 61 6c 6c | 6f 63 0a 20 20 23 64 65 | ck_mall|oc. #de|
|00000d60| 66 69 6e 65 20 6f 62 73 | 74 61 63 6b 5f 63 68 75 |fine obs|tack_chu|
|00000d70| 6e 6b 5f 66 72 65 65 20 | 66 72 65 65 0a 2a 2a 2a |nk_free |free.***|
|00000d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00000d90| 20 38 37 32 2c 38 37 39 | 20 2a 2a 2a 2a 0a 2d 2d | 872,879| ****.--|
|00000da0| 2d 20 38 37 33 2c 38 38 | 36 20 2d 2d 2d 2d 0a 20 |- 873,88|6 ----. |
|00000db0| 20 09 66 2d 3e 6e 6f 77 | 72 6f 77 3d 6d 79 72 6f | .f->now|row=myro|
|00000dc0| 77 3b 0a 20 20 09 66 2d | 3e 63 6f 6c 70 70 74 72 |w;. .f-|>colpptr|
|00000dd0| 3d 20 26 28 66 2d 3e 6e | 6f 77 72 6f 77 2d 3e 63 |= &(f->n|owrow->c|
|00000de0| 6f 6c 73 5b 66 2d 3e 6c | 72 2d 66 2d 3e 6e 6f 77 |ols[f->l|r-f->now|
|00000df0| 72 6f 77 2d 3e 72 6f 77 | 5f 6c 6f 77 5d 29 3b 0a |row->row|_low]);.|
|00000e00| 20 20 09 66 2d 3e 6e 6f | 77 63 6f 6c 3d 20 2a 28 | .f->no|wcol= *(|
|00000e10| 66 2d 3e 63 6f 6c 70 70 | 74 72 29 2b 2b 3b 0a 2b |f->colpp|tr)++;.+|
|00000e20| 20 09 69 66 20 28 21 66 | 2d 3e 6e 6f 77 63 6f 6c | .if (!f|->nowcol|
|00000e30| 29 0a 2b 20 09 09 70 61 | 6e 69 63 28 22 66 2d 3e |).+ ..pa|nic("f->|
|00000e40| 6e 6f 77 63 6f 6c 20 69 | 73 20 6e 6f 74 20 61 20 |nowcol i|s not a |
|00000e50| 63 6f 6f 6c 20 70 6f 69 | 6e 74 65 72 22 2c 30 29 |cool poi|nter",0)|
|00000e60| 3b 0a 20 20 09 77 68 69 | 6c 65 28 66 2d 3e 6e 6f |;. .whi|le(f->no|
|00000e70| 77 63 6f 6c 2d 3e 63 6f | 6c 5f 68 69 67 68 3c 66 |wcol->co|l_high<f|
|00000e80| 2d 3e 6c 63 29 0a 2b 20 | 09 7b 0a 20 20 09 09 66 |->lc).+ |.{. ..f|
|00000e90| 2d 3e 6e 6f 77 63 6f 6c | 3d 66 2d 3e 6e 6f 77 63 |->nowcol|=f->nowc|
|00000ea0| 6f 6c 2d 3e 63 6f 6c 5f | 6e 65 78 74 3b 0a 2b 20 |ol->col_|next;.+ |
|00000eb0| 09 09 69 66 20 28 21 66 | 2d 3e 6e 6f 77 63 6f 6c |..if (!f|->nowcol|
|00000ec0| 29 0a 2b 20 09 09 09 70 | 61 6e 69 63 28 22 66 2d |).+ ...p|anic("f-|
|00000ed0| 3e 6e 6f 77 63 6f 6c 20 | 69 73 20 72 65 61 6c 20 |>nowcol |is real |
|00000ee0| 75 6e 63 6f 6f 6c 20 70 | 6f 69 6e 74 65 72 22 2c |uncool p|ointer",|
|00000ef0| 30 29 3b 0a 2b 20 09 7d | 0a 20 20 09 66 2d 3e 6e |0);.+ .}|. .f->n|
|00000f00| 6f 77 63 65 6c 6c 3d 20 | 26 28 66 2d 3e 6e 6f 77 |owcell= |&(f->now|
|00000f10| 63 6f 6c 2d 3e 63 65 6c | 6c 73 5b 66 2d 3e 6c 63 |col->cel|ls[f->lc|
|00000f20| 2d 66 2d 3e 6e 6f 77 63 | 6f 6c 2d 3e 63 6f 6c 5f |-f->nowc|ol->col_|
|00000f30| 6c 6f 77 5d 29 3b 0a 20 | 20 0a 20 20 23 69 66 64 |low]);. | . #ifd|
|00000f40| 65 66 20 54 45 53 54 0a | 2a 2a 2a 20 63 65 6c 6c |ef TEST.|*** cell|
|00000f50| 2e 68 09 54 68 75 20 41 | 70 72 20 32 35 20 31 35 |.h.Thu A|pr 25 15|
|00000f60| 3a 33 32 3a 33 39 20 31 | 39 39 31 0a 2d 2d 2d 20 |:32:39 1|991.--- |
|00000f70| 2e 2e 2f 6f 6c 65 6f 2f | 63 65 6c 6c 2e 68 09 54 |../oleo/|cell.h.T|
|00000f80| 75 65 20 4d 61 72 20 32 | 34 20 32 33 3a 32 39 3a |ue Mar 2|4 23:29:|
|00000f90| 30 35 20 31 39 39 32 0a | 2a 2a 2a 2a 2a 2a 2a 2a |05 1992.|********|
|00000fa0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 31 36 2c 32 |*******.|*** 16,2|
|00000fb0| 31 20 2a 2a 2a 2a 0a 2d | 2d 2d 20 31 36 2c 32 37 |1 ****.-|-- 16,27|
|00000fc0| 20 2d 2d 2d 2d 0a 20 20 | 61 6c 6f 6e 67 20 77 69 | ----. |along wi|
|00000fd0| 74 68 20 4f 6c 65 6f 3b | 20 73 65 65 20 74 68 65 |th Oleo;| see the|
|00000fe0| 20 66 69 6c 65 20 43 4f | 50 59 49 4e 47 2e 20 20 | file CO|PYING. |
|00000ff0| 49 66 20 6e 6f 74 2c 20 | 77 72 69 74 65 20 74 6f |If not, |write to|
|00001000| 0a 20 20 74 68 65 20 46 | 72 65 65 20 53 6f 66 74 |. the F|ree Soft|
|00001010| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 2c |ware Fou|ndation,|
|00001020| 20 36 37 35 20 4d 61 73 | 73 20 41 76 65 2c 20 43 | 675 Mas|s Ave, C|
|00001030| 61 6d 62 72 69 64 67 65 | 2c 20 4d 41 20 30 32 31 |ambridge|, MA 021|
|00001040| 33 39 2c 20 55 53 41 2e | 20 20 2a 2f 0a 20 20 0a |39, USA.| */. .|
|00001050| 2b 20 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c |+ #inclu|de <stdl|
|00001060| 69 62 2e 68 3e 0a 2b 20 | 23 69 6e 63 6c 75 64 65 |ib.h>.+ |#include|
|00001070| 20 3c 6d 61 74 68 2e 68 | 3e 0a 2b 20 23 69 6e 63 | <math.h|>.+ #inc|
|00001080| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|00001090| 2b 20 23 69 6e 63 6c 75 | 64 65 20 3c 74 69 6d 65 |+ #inclu|de <time|
|000010a0| 2e 68 3e 0a 2b 20 23 69 | 6e 63 6c 75 64 65 20 3c |.h>.+ #i|nclude <|
|000010b0| 75 6e 69 73 74 64 2e 68 | 3e 0a 2b 20 0a 20 20 2f |unistd.h|>.+ . /|
|000010c0| 2a 20 56 61 72 69 6f 75 | 73 20 73 74 72 75 63 74 |* Variou|s struct|
|000010d0| 75 72 65 73 20 61 6e 64 | 20 73 74 75 66 66 20 66 |ures and| stuff f|
|000010e0| 6f 72 20 74 68 65 20 73 | 70 72 65 61 64 73 68 65 |or the s|preadshe|
|000010f0| 65 74 20 2a 2f 0a 20 20 | 0a 20 20 2f 2a 20 41 20 |et */. |. /* A |
|00001100| 75 6e 69 6f 6e 20 6f 66 | 20 70 6f 73 73 69 62 6c |union of| possibl|
|00001110| 65 20 76 61 6c 75 65 73 | 20 66 6f 72 20 61 20 6c |e values| for a l|
|00001120| 6f 63 61 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 73 |ocation |in the s|
|00001130| 70 72 65 61 64 73 68 65 | 65 74 0a 2a 2a 2a 20 64 |preadshe|et.*** d|
|00001140| 65 63 6f 6d 70 69 6c 65 | 2e 63 09 4d 6f 6e 20 41 |ecompile|.c.Mon A|
|00001150| 70 72 20 32 39 20 31 39 | 3a 33 36 3a 34 33 20 31 |pr 29 19|:36:43 1|
|00001160| 39 39 31 0a 2d 2d 2d 20 | 2e 2e 2f 6f 6c 65 6f 2f |991.--- |../oleo/|
|00001170| 64 65 63 6f 6d 70 69 6c | 65 2e 63 09 54 75 65 20 |decompil|e.c.Tue |
|00001180| 4d 61 72 20 32 34 20 32 | 33 3a 34 39 3a 34 37 20 |Mar 24 2|3:49:47 |
|00001190| 31 39 39 32 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1992.***|********|
|000011a0| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 36 2c 32 31 20 2a |****.***| 16,21 *|
|000011b0| 2a 2a 2a 0a 2d 2d 2d 20 | 31 36 2c 32 32 20 2d 2d |***.--- |16,22 --|
|000011c0| 2d 2d 0a 20 20 61 6c 6f | 6e 67 20 77 69 74 68 20 |--. alo|ng with |
|000011d0| 4f 6c 65 6f 3b 20 73 65 | 65 20 74 68 65 20 66 69 |Oleo; se|e the fi|
|000011e0| 6c 65 20 43 4f 50 59 49 | 4e 47 2e 20 20 49 66 20 |le COPYI|NG. If |
|000011f0| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 0a 20 20 |not, wri|te to. |
|00001200| 74 68 65 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |the Free| Softwar|
|00001210| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 2c 20 36 37 |e Founda|tion, 67|
|00001220| 35 20 4d 61 73 73 20 41 | 76 65 2c 20 43 61 6d 62 |5 Mass A|ve, Camb|
|00001230| 72 69 64 67 65 2c 20 4d | 41 20 30 32 31 33 39 2c |ridge, M|A 02139,|
|00001240| 20 55 53 41 2e 20 20 2a | 2f 0a 20 20 0a 2b 20 23 | USA. *|/. .+ #|
|00001250| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00001260| 3e 0a 20 20 23 69 6e 63 | 6c 75 64 65 20 22 66 75 |>. #inc|lude "fu|
|00001270| 6e 63 64 65 66 2e 68 22 | 0a 20 20 23 69 6e 63 6c |ncdef.h"|. #incl|
|00001280| 75 64 65 20 22 73 79 73 | 64 65 66 2e 68 22 0a 20 |ude "sys|def.h". |
|00001290| 20 0a 2a 2a 2a 20 65 76 | 61 6c 2e 63 09 53 61 74 | .*** ev|al.c.Sat|
|000012a0| 20 4d 61 79 20 20 34 20 | 31 34 3a 32 38 3a 34 35 | May 4 |14:28:45|
|000012b0| 20 31 39 39 31 0a 2d 2d | 2d 20 2e 2e 2f 6f 6c 65 | 1991.--|- ../ole|
|000012c0| 6f 2f 65 76 61 6c 2e 63 | 09 4d 6f 6e 20 4d 61 72 |o/eval.c|.Mon Mar|
|000012d0| 20 32 33 20 30 30 3a 32 | 32 3a 35 39 20 31 39 39 | 23 00:2|2:59 199|
|000012e0| 32 0a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |2.******|********|
|000012f0| 2a 0a 2a 2a 2a 20 31 39 | 2c 32 34 20 2a 2a 2a 2a |*.*** 19|,24 ****|
|00001300| 0a 2d 2d 2d 20 31 39 2c | 32 35 20 2d 2d 2d 2d 0a |.--- 19,|25 ----.|
|00001310| 20 20 23 69 6e 63 6c 75 | 64 65 20 3c 6d 61 74 68 | #inclu|de <math|
|00001320| 2e 68 3e 0a 20 20 23 69 | 6e 63 6c 75 64 65 20 3c |.h>. #i|nclude <|
|00001330| 63 74 79 70 65 2e 68 3e | 0a 20 20 23 69 6e 63 6c |ctype.h>|. #incl|
|00001340| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 2b 20 |ude <std|io.h>.+ |
|00001350| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 72 69 6e 67 |#include| <string|
|00001360| 2e 68 3e 0a 20 20 0a 20 | 20 23 69 66 64 65 66 20 |.h>. . | #ifdef |
|00001370| 5f 5f 54 55 52 42 4f 43 | 5f 5f 0a 20 20 23 64 65 |__TURBOC|__. #de|
|00001380| 66 69 6e 65 20 53 4d 41 | 4c 4c 45 56 41 4c 0a 2a |fine SMA|LLEVAL.*|
|00001390| 2a 2a 20 69 6f 5f 64 69 | 73 70 2e 63 09 54 75 65 |** io_di|sp.c.Tue|
|000013a0| 20 41 70 72 20 33 30 20 | 31 35 3a 32 32 3a 31 35 | Apr 30 |15:22:15|
|000013b0| 20 31 39 39 31 0a 2d 2d | 2d 20 2e 2e 2f 6f 6c 65 | 1991.--|- ../ole|
|000013c0| 6f 2f 69 6f 5f 64 69 73 | 70 2e 63 09 57 65 64 20 |o/io_dis|p.c.Wed |
|000013d0| 4d 61 72 20 32 35 20 30 | 34 3a 30 31 3a 35 36 20 |Mar 25 0|4:01:56 |
|000013e0| 31 39 39 32 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1992.***|********|
|000013f0| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 36 2c 32 31 20 2a |****.***| 16,21 *|
|00001400| 2a 2a 2a 0a 2d 2d 2d 20 | 31 36 2c 32 32 20 2d 2d |***.--- |16,22 --|
|00001410| 2d 2d 0a 20 20 61 6c 6f | 6e 67 20 77 69 74 68 20 |--. alo|ng with |
|00001420| 4f 6c 65 6f 3b 20 73 65 | 65 20 74 68 65 20 66 69 |Oleo; se|e the fi|
|00001430| 6c 65 20 43 4f 50 59 49 | 4e 47 2e 20 20 49 66 20 |le COPYI|NG. If |
|00001440| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 0a 20 20 |not, wri|te to. |
|00001450| 74 68 65 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |the Free| Softwar|
|00001460| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 2c 20 36 37 |e Founda|tion, 67|
|00001470| 35 20 4d 61 73 73 20 41 | 76 65 2c 20 43 61 6d 62 |5 Mass A|ve, Camb|
|00001480| 72 69 64 67 65 2c 20 4d | 41 20 30 32 31 33 39 2c |ridge, M|A 02139,|
|00001490| 20 55 53 41 2e 20 20 2a | 2f 0a 20 20 0a 2b 20 23 | USA. *|/. .+ #|
|000014a0| 64 65 66 69 6e 65 20 41 | 5f 53 54 41 4e 44 4f 55 |define A|_STANDOU|
|000014b0| 54 20 5f 53 54 41 4e 44 | 4f 55 54 0a 20 20 23 69 |T _STAND|OUT. #i|
|000014c0| 6e 63 6c 75 64 65 20 22 | 66 75 6e 63 64 65 66 2e |nclude "|funcdef.|
|000014d0| 68 22 0a 20 20 0a 20 20 | 23 69 6e 63 6c 75 64 65 |h". . |#include|
|000014e0| 20 3c 66 63 6e 74 6c 2e | 68 3e 0a 2a 2a 2a 2a 2a | <fcntl.|h>.*****|
|000014f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2a 2a 2a 20 31 |********|**.*** 1|
|00001500| 35 39 2c 31 36 34 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 |59,164 *|***.--- |
|00001510| 31 36 30 2c 31 36 37 20 | 2d 2d 2d 2d 0a 20 20 65 |160,167 |----. e|
|00001520| 78 74 65 72 6e 20 76 6f | 69 64 20 6b 69 6c 6c 5f |xtern vo|id kill_|
|00001530| 73 6c 6f 70 20 45 58 54 | 34 28 56 4f 49 44 53 54 |slop EXT|4(VOIDST|
|00001540| 41 52 2c 20 43 45 4c 4c | 52 45 46 2c 20 43 45 4c |AR, CELL|REF, CEL|
|00001550| 4c 52 45 46 2c 20 43 45 | 4c 4c 52 45 46 29 3b 0a |LREF, CE|LLREF);.|
|00001560| 20 20 65 78 74 65 72 6e | 20 76 6f 69 64 20 63 68 | extern| void ch|
|00001570| 61 6e 67 65 5f 73 6c 6f | 70 20 45 58 54 36 28 56 |ange_slo|p EXT6(V|
|00001580| 4f 49 44 53 54 41 52 2c | 20 43 45 4c 4c 52 45 46 |OIDSTAR,| CELLREF|
|00001590| 2c 20 43 45 4c 4c 52 45 | 46 2c 20 43 45 4c 4c 52 |, CELLRE|F, CELLR|
|000015a0| 45 46 2c 20 43 45 4c 4c | 52 45 46 2c 20 43 45 4c |EF, CELL|REF, CEL|
|000015b0| 4c 52 45 46 29 3b 0a 20 | 20 65 78 74 65 72 6e 20 |LREF);. | extern |
|000015c0| 76 6f 69 64 20 73 65 74 | 5f 73 6c 6f 70 20 45 58 |void set|_slop EX|
|000015d0| 54 34 28 56 4f 49 44 53 | 54 41 52 20 2a 2c 20 43 |T4(VOIDS|TAR *, C|
|000015e0| 45 4c 4c 52 45 46 2c 20 | 43 45 4c 4c 52 45 46 2c |ELLREF, |CELLREF,|
|000015f0| 20 43 45 4c 4c 52 45 46 | 29 3b 0a 2b 20 65 78 74 | CELLREF|);.+ ext|
|00001600| 65 72 6e 20 76 6f 69 64 | 20 6d 61 70 5f 63 68 72 |ern void| map_chr|
|00001610| 28 69 6e 74 20 6e 29 3b | 0a 2b 20 65 78 74 65 72 |(int n);|.+ exter|
|00001620| 6e 20 76 6f 69 64 20 73 | 65 74 5f 6f 70 74 69 6f |n void s|et_optio|
|00001630| 6e 73 28 63 68 61 72 20 | 2a 6f 70 74 73 29 3b 0a |ns(char |*opts);.|
|00001640| 20 20 0a 20 20 65 78 74 | 65 72 6e 20 63 68 61 72 | . ext|ern char|
|00001650| 20 2a 70 72 69 6e 74 5f | 63 65 6c 6c 20 45 58 54 | *print_|cell EXT|
|00001660| 31 28 43 45 4c 4c 20 2a | 29 3b 0a 20 20 65 78 74 |1(CELL *|);. ext|
|00001670| 65 72 6e 20 63 68 61 72 | 20 2a 61 64 6a 75 73 74 |ern char| *adjust|
|00001680| 5f 70 72 63 20 45 58 54 | 35 28 63 68 61 72 20 2a |_prc EXT|5(char *|
|00001690| 2c 20 43 45 4c 4c 20 2a | 2c 20 69 6e 74 2c 20 69 |, CELL *|, int, i|
|000016a0| 6e 74 2c 20 69 6e 74 29 | 3b 0a 2a 2a 2a 2a 2a 2a |nt, int)|;.******|
|000016b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 34 30 |********|*.*** 40|
|000016c0| 33 2c 34 30 38 20 2a 2a | 2a 2a 0a 2d 2d 2d 20 34 |3,408 **|**.--- 4|
|000016d0| 30 36 2c 34 31 32 20 2d | 2d 2d 2d 0a 20 20 7b 0a |06,412 -|---. {.|
|000016e0| 20 20 09 63 6c 65 61 72 | 28 29 3b 0a 20 20 09 72 | .clear|();. .r|
|000016f0| 65 66 72 65 73 68 28 29 | 3b 0a 2b 20 09 6e 6c 28 |efresh()|;.+ .nl(|
|00001700| 29 3b 0a 20 20 09 28 76 | 6f 69 64 29 65 6e 64 77 |);. .(v|oid)endw|
|00001710| 69 6e 28 29 3b 0a 20 20 | 7d 0a 20 20 0a 2a 2a 2a |in();. |}. .***|
|00001720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00001730| 20 31 35 35 35 2c 31 35 | 36 36 20 2a 2a 2a 2a 0a | 1555,15|66 ****.|
|00001740| 20 20 09 09 43 45 4c 4c | 52 45 46 20 63 63 6c 2c | ..CELL|REF ccl,|
|00001750| 63 63 68 3b 0a 20 20 0a | 20 20 09 09 66 6f 72 28 |cch;. .| ..for(|
|00001760| 77 77 69 64 3d 77 69 64 | 3b 6c 65 6e 73 74 72 3e |wwid=wid|;lenstr>|
|00001770| 77 77 69 64 2d 31 3b 77 | 77 69 64 2b 3d 67 65 74 |wwid-1;w|wid+=get|
|00001780| 5f 77 69 64 74 68 28 63 | 63 29 29 20 7b 0a 21 20 |_width(c|c)) {.! |
|00001790| 09 09 09 69 66 28 20 20 | 20 2b 2b 63 63 3e 77 69 |...if( | ++cc>wi|
|000017a0| 6e 2d 3e 73 63 72 65 65 | 6e 2e 68 63 0a 21 20 09 |n->scree|n.hc.! .|
|000017b0| 09 09 20 20 20 7c 7c 20 | 28 20 20 20 63 63 70 3d |.. || |( ccp=|
|000017c0| 66 69 6e 64 5f 63 65 6c | 6c 28 72 2c 63 63 29 29 |find_cel|l(r,cc))|
|000017d0| 0a 20 20 09 09 09 20 20 | 20 20 20 20 20 26 26 20 |. ... | && |
|000017e0| 47 45 54 5f 54 59 50 28 | 63 63 70 29 0a 21 20 09 |GET_TYP(|ccp).! .|
|000017f0| 09 09 20 20 20 20 20 20 | 20 26 26 20 28 20 20 20 |.. | && ( |
|00001800| 47 45 54 5f 46 4d 54 28 | 63 63 70 29 21 3d 46 4d |GET_FMT(|ccp)!=FM|
|00001810| 54 5f 48 49 44 0a 21 20 | 09 09 09 09 20 20 20 7c |T_HID.! |.... ||
|00001820| 7c 20 28 20 20 20 47 45 | 54 5f 46 4d 54 28 63 63 || ( GE|T_FMT(cc|
|00001830| 70 29 3d 3d 46 4d 54 5f | 44 45 46 0a 21 20 09 09 |p)==FMT_|DEF.! ..|
|00001840| 09 09 20 20 20 20 20 20 | 20 26 26 20 64 65 66 61 |.. | && defa|
|00001850| 75 6c 74 5f 66 6d 74 21 | 3d 46 4d 54 5f 48 49 44 |ult_fmt!|=FMT_HID|
|00001860| 29 29 29 20 7b 0a 20 20 | 09 09 09 09 2d 2d 63 63 |))) {. |....--cc|
|00001870| 3b 0a 20 20 09 09 09 09 | 62 72 65 61 6b 3b 0a 20 |;. ....|break;. |
|00001880| 20 09 09 09 7d 0a 2d 2d | 2d 20 31 35 35 39 2c 31 | ...}.--|- 1559,1|
|00001890| 35 37 30 20 2d 2d 2d 2d | 0a 20 20 09 09 43 45 4c |570 ----|. ..CEL|
|000018a0| 4c 52 45 46 20 63 63 6c | 2c 63 63 68 3b 0a 20 20 |LREF ccl|,cch;. |
|000018b0| 0a 20 20 09 09 66 6f 72 | 28 77 77 69 64 3d 77 69 |. ..for|(wwid=wi|
|000018c0| 64 3b 6c 65 6e 73 74 72 | 3e 77 77 69 64 2d 31 3b |d;lenstr|>wwid-1;|
|000018d0| 77 77 69 64 2b 3d 67 65 | 74 5f 77 69 64 74 68 28 |wwid+=ge|t_width(|
|000018e0| 63 63 29 29 20 7b 0a 21 | 20 09 09 09 69 66 28 20 |cc)) {.!| ...if( |
|000018f0| 20 20 28 2b 2b 63 63 3e | 77 69 6e 2d 3e 73 63 72 | (++cc>|win->scr|
|00001900| 65 65 6e 2e 68 63 29 0a | 21 20 09 09 09 20 20 20 |een.hc).|! ... |
|00001910| 7c 7c 20 28 28 20 20 20 | 63 63 70 3d 66 69 6e 64 ||| (( |ccp=find|
|00001920| 5f 63 65 6c 6c 28 72 2c | 63 63 29 29 0a 20 20 09 |_cell(r,|cc)). .|
|00001930| 09 09 20 20 20 20 20 20 | 20 26 26 20 47 45 54 5f |.. | && GET_|
|00001940| 54 59 50 28 63 63 70 29 | 0a 21 20 09 09 09 20 20 |TYP(ccp)|.! ... |
|00001950| 20 20 20 20 20 26 26 20 | 28 20 20 20 28 47 45 54 | && |( (GET|
|00001960| 5f 46 4d 54 28 63 63 70 | 29 21 3d 46 4d 54 5f 48 |_FMT(ccp|)!=FMT_H|
|00001970| 49 44 29 0a 21 20 09 09 | 09 09 20 20 20 7c 7c 20 |ID).! ..|.. || |
|00001980| 28 20 20 20 28 47 45 54 | 5f 46 4d 54 28 63 63 70 |( (GET|_FMT(ccp|
|00001990| 29 3d 3d 46 4d 54 5f 44 | 45 46 29 0a 21 20 09 09 |)==FMT_D|EF).! ..|
|000019a0| 09 09 20 20 20 20 20 20 | 20 26 26 20 28 64 65 66 |.. | && (def|
|000019b0| 61 75 6c 74 5f 66 6d 74 | 21 3d 46 4d 54 5f 48 49 |ault_fmt|!=FMT_HI|
|000019c0| 44 29 29 29 29 29 20 7b | 0a 20 20 09 09 09 09 2d |D))))) {|. ....-|
|000019d0| 2d 63 63 3b 0a 20 20 09 | 09 09 09 62 72 65 61 6b |-cc;. .|...break|
|000019e0| 3b 0a 20 20 09 09 09 7d | 0a 2a 2a 2a 20 69 6f 5f |;. ...}|.*** io_|
|000019f0| 74 65 72 6d 2e 63 09 4d | 6f 6e 20 4d 61 79 20 20 |term.c.M|on May |
|00001a00| 36 20 31 39 3a 33 36 3a | 34 33 20 31 39 39 31 0a |6 19:36:|43 1991.|
|00001a10| 2d 2d 2d 20 2e 2e 2f 6f | 6c 65 6f 2f 69 6f 5f 74 |--- ../o|leo/io_t|
|00001a20| 65 72 6d 2e 63 09 57 65 | 64 20 4d 61 72 20 32 35 |erm.c.We|d Mar 25|
|00001a30| 20 30 39 3a 34 37 3a 30 | 39 20 31 39 39 32 0a 2a | 09:47:0|9 1992.*|
|00001a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00001a50| 2a 2a 20 32 30 2c 32 35 | 20 2a 2a 2a 2a 0a 2d 2d |** 20,25| ****.--|
|00001a60| 2d 20 32 30 2c 32 37 20 | 2d 2d 2d 2d 0a 20 20 23 |- 20,27 |----. #|
|00001a70| 69 6e 63 6c 75 64 65 20 | 3c 65 72 72 6e 6f 2e 68 |include |<errno.h|
|00001a80| 3e 0a 20 20 23 69 6e 63 | 6c 75 64 65 20 3c 66 63 |>. #inc|lude <fc|
|00001a90| 6e 74 6c 2e 68 3e 0a 20 | 20 23 69 6e 63 6c 75 64 |ntl.h>. | #includ|
|00001aa0| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 2b 20 23 69 |e <stdio|.h>.+ #i|
|00001ab0| 6e 63 6c 75 64 65 20 3c | 73 74 64 6c 69 62 2e 68 |nclude <|stdlib.h|
|00001ac0| 3e 0a 2b 20 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |>.+ #inc|lude <st|
|00001ad0| 72 69 6e 67 2e 68 3e 0a | 20 20 23 69 6e 63 6c 75 |ring.h>.| #inclu|
|00001ae0| 64 65 20 3c 73 69 67 6e | 61 6c 2e 68 3e 0a 20 20 |de <sign|al.h>. |
|00001af0| 0a 20 20 23 69 66 64 65 | 66 20 49 5f 49 4f 43 54 |. #ifde|f I_IOCT|
|00001b00| 4c 0a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |L.******|********|
|00001b10| 2a 0a 2a 2a 2a 20 36 39 | 2c 37 35 20 2a 2a 2a 2a |*.*** 69|,75 ****|
|00001b20| 0a 20 20 0a 20 20 23 64 | 65 66 69 6e 65 20 57 54 |. . #d|efine WT|
|00001b30| 48 5f 43 48 52 20 30 78 | 34 0a 20 20 23 64 65 66 |H_CHR 0x|4. #def|
|00001b40| 69 6e 65 20 42 52 4b 09 | 30 78 38 0a 21 20 23 64 |ine BRK.|0x8.! #d|
|00001b50| 65 66 69 6e 65 20 4e 43 | 09 30 78 31 30 0a 20 20 |efine NC|.0x10. |
|00001b60| 0a 20 20 73 74 72 75 63 | 74 20 6c 69 6e 65 20 7b |. struc|t line {|
|00001b70| 0a 20 20 09 69 6e 74 20 | 61 6c 6c 6f 63 3b 0a 2d |. .int |alloc;.-|
|00001b80| 2d 2d 20 37 31 2c 37 37 | 20 2d 2d 2d 2d 0a 20 20 |-- 71,77| ----. |
|00001b90| 0a 20 20 23 64 65 66 69 | 6e 65 20 57 54 48 5f 43 |. #defi|ne WTH_C|
|00001ba0| 48 52 20 30 78 34 0a 20 | 20 23 64 65 66 69 6e 65 |HR 0x4. | #define|
|00001bb0| 20 42 52 4b 09 30 78 38 | 0a 21 20 23 64 65 66 69 | BRK.0x8|.! #defi|
|00001bc0| 6e 65 20 4e 43 09 30 78 | 31 30 20 0a 20 20 0a 20 |ne NC.0x|10 . . |
|00001bd0| 20 73 74 72 75 63 74 20 | 6c 69 6e 65 20 7b 0a 20 | struct |line {. |
|00001be0| 20 09 69 6e 74 20 61 6c | 6c 6f 63 3b 0a 2a 2a 2a | .int al|loc;.***|
|00001bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00001c00| 20 38 37 2c 39 32 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 | 87,92 *|***.--- |
|00001c10| 38 39 2c 39 35 20 2d 2d | 2d 2d 0a 20 20 2f 2a 20 |89,95 --|--. /* |
|00001c20| 45 78 74 65 72 6e 61 6c | 20 73 70 72 65 61 64 73 |External| spreads|
|00001c30| 68 65 65 74 20 66 75 6e | 63 74 69 6f 6e 73 20 2a |heet fun|ctions *|
|00001c40| 2f 0a 20 20 0a 20 20 2f | 2a 20 75 74 69 6c 73 2e |/. . /|* utils.|
|00001c50| 63 20 2a 2f 0a 2b 20 65 | 78 74 65 72 6e 20 69 6e |c */.+ e|xtern in|
|00001c60| 74 20 75 73 72 5f 73 65 | 74 5f 66 6d 74 73 28 76 |t usr_se|t_fmts(v|
|00001c70| 6f 69 64 29 3b 0a 20 20 | 65 78 74 65 72 6e 20 63 |oid);. |extern c|
|00001c80| 68 61 72 20 2a 63 68 61 | 72 5f 74 6f 5f 73 74 72 |har *cha|r_to_str|
|00001c90| 69 6e 67 20 45 58 54 31 | 28 63 68 61 72 29 3b 0a |ing EXT1|(char);.|
|00001ca0| 20 20 65 78 74 65 72 6e | 20 69 6e 74 20 73 74 72 | extern| int str|
|00001cb0| 69 6e 67 5f 74 6f 5f 63 | 68 61 72 20 45 58 54 31 |ing_to_c|har EXT1|
|00001cc0| 28 63 68 61 72 20 2a 2a | 29 3b 0a 20 20 65 78 74 |(char **|);. ext|
|00001cd0| 65 72 6e 20 46 49 4c 45 | 20 2a 78 6f 70 65 6e 5f |ern FILE| *xopen_|
|00001ce0| 77 69 74 68 5f 62 61 63 | 6b 75 70 20 45 58 54 32 |with_bac|kup EXT2|
|00001cf0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 2c 63 6f |(const c|har *,co|
|00001d00| 6e 73 74 20 63 68 61 72 | 20 2a 29 3b 0a 2a 2a 2a |nst char| *);.***|
|00001d10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00001d20| 20 31 30 33 2c 31 30 38 | 20 2a 2a 2a 2a 0a 2d 2d | 103,108| ****.--|
|00001d30| 2d 20 31 30 36 2c 31 31 | 33 20 2d 2d 2d 2d 0a 20 |- 106,11|3 ----. |
|00001d40| 20 65 78 74 65 72 6e 20 | 76 6f 69 64 20 70 61 6e | extern |void pan|
|00001d50| 69 63 5f 77 72 69 74 65 | 5f 66 69 6c 65 20 45 58 |ic_write|_file EX|
|00001d60| 54 32 28 46 49 4c 45 20 | 2a 2c 73 74 72 75 63 74 |T2(FILE |*,struct|
|00001d70| 20 72 6e 67 20 2a 29 3b | 0a 20 20 65 78 74 65 72 | rng *);|. exter|
|00001d80| 6e 20 20 69 6e 74 20 70 | 61 6e 69 63 5f 73 65 74 |n int p|anic_set|
|00001d90| 5f 6f 70 74 69 6f 6e 73 | 20 45 58 54 32 28 69 6e |_options| EXT2(in|
|00001da0| 74 2c 20 63 68 61 72 20 | 2a 29 3b 0a 20 20 65 78 |t, char |*);. ex|
|00001db0| 74 65 72 6e 20 76 6f 69 | 64 20 70 61 6e 69 63 5f |tern voi|d panic_|
|00001dc0| 73 68 6f 77 5f 6f 70 74 | 69 6f 6e 73 20 45 58 54 |show_opt|ions EXT|
|00001dd0| 30 28 29 3b 0a 2b 20 65 | 78 74 65 72 6e 20 76 6f |0();.+ e|xtern vo|
|00001de0| 69 64 20 74 65 78 74 5f | 73 74 61 72 74 20 45 58 |id text_|start EX|
|00001df0| 54 30 28 29 3b 0a 2b 20 | 65 78 74 65 72 6e 20 76 |T0();.+ |extern v|
|00001e00| 6f 69 64 20 74 65 78 74 | 5f 66 69 6e 69 73 68 20 |oid text|_finish |
|00001e10| 45 58 54 30 28 29 3b 0a | 20 20 0a 20 20 23 69 66 |EXT0();.| . #if|
|00001e20| 64 65 66 20 55 53 45 5f | 44 4c 44 0a 20 20 09 2f |def USE_|DLD. ./|
|00001e30| 2a 20 49 66 20 77 65 27 | 72 65 20 75 73 69 6e 67 |* If we'|re using|
|00001e40| 20 64 79 6e 61 6d 69 63 | 20 6c 69 6e 6b 69 6e 67 | dynamic| linking|
|00001e50| 2c 20 77 65 20 67 65 74 | 20 74 68 65 20 6e 61 6d |, we get| the nam|
|00001e60| 65 73 20 6f 66 20 74 68 | 65 0a 2a 2a 2a 2a 2a 2a |es of th|e.******|
|00001e70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 32 36 |********|*.*** 26|
|00001e80| 34 2c 32 37 33 20 2a 2a | 2a 2a 0a 2d 2d 2d 20 32 |4,273 **|**.--- 2|
|00001e90| 36 39 2c 32 38 34 20 2d | 2d 2d 2d 0a 20 20 2f 2a |69,284 -|---. /*|
|00001ea0| 20 4f 72 69 67 69 6e 61 | 6c 20 76 61 6c 75 65 20 | Origina|l value |
|00001eb0| 69 73 20 31 30 20 73 65 | 63 6f 6e 64 73 2f 74 69 |is 10 se|conds/ti|
|00001ec0| 63 6b 20 2a 2f 0a 20 20 | 75 6e 73 69 67 6e 65 64 |ck */. |unsigned|
|00001ed0| 20 73 69 67 6e 61 6c 5f | 74 69 63 6b 73 20 3d 20 | signal_|ticks = |
|00001ee0| 31 30 20 2a 20 54 49 4d | 45 52 5f 4d 55 4c 54 3b |10 * TIM|ER_MULT;|
|00001ef0| 0a 20 20 0a 2b 20 2f 2a | 0a 20 20 76 6f 69 64 20 |. .+ /*|. void |
|00001f00| 28 2a 72 65 61 64 5f 66 | 69 6c 65 29 20 45 58 54 |(*read_f|ile) EXT|
|00001f10| 32 28 46 49 4c 45 20 2a | 2c 69 6e 74 29 20 20 20 |2(FILE *|,int) |
|00001f20| 20 20 20 20 20 20 20 20 | 3d 20 70 61 6e 69 63 5f | |= panic_|
|00001f30| 72 65 61 64 5f 66 69 6c | 65 3b 0a 20 20 76 6f 69 |read_fil|e;. voi|
|00001f40| 64 20 28 2a 77 72 69 74 | 65 5f 66 69 6c 65 29 20 |d (*writ|e_file) |
|00001f50| 45 58 54 32 28 46 49 4c | 45 20 2a 2c 73 74 72 75 |EXT2(FIL|E *,stru|
|00001f60| 63 74 20 72 6e 67 20 2a | 29 20 3d 20 70 61 6e 69 |ct rng *|) = pani|
|00001f70| 63 5f 77 72 69 74 65 5f | 66 69 6c 65 3b 0a 20 20 |c_write_|file;. |
|00001f80| 69 6e 74 20 28 2a 73 65 | 74 5f 66 69 6c 65 5f 6f |int (*se|t_file_o|
|00001f90| 70 74 73 29 20 45 58 54 | 32 28 69 6e 74 2c 20 63 |pts) EXT|2(int, c|
|00001fa0| 68 61 72 20 2a 29 09 20 | 20 20 20 20 3d 20 70 61 |har *). | = pa|
|00001fb0| 6e 69 63 5f 73 65 74 5f | 6f 70 74 69 6f 6e 73 3b |nic_set_|options;|
|00001fc0| 0a 20 20 76 6f 69 64 20 | 28 2a 73 68 6f 77 5f 66 |. void |(*show_f|
|00001fd0| 69 6c 65 5f 6f 70 74 73 | 29 20 45 58 54 30 28 29 |ile_opts|) EXT0()|
|00001fe0| 09 09 20 20 20 20 20 3d | 20 70 61 6e 69 63 5f 73 |.. =| panic_s|
|00001ff0| 68 6f 77 5f 6f 70 74 69 | 6f 6e 73 3b 0a 2b 20 2a |how_opti|ons;.+ *|
|00002000| 2f 0a 2b 20 76 6f 69 64 | 20 28 2a 72 65 61 64 5f |/.+ void| (*read_|
|00002010| 66 69 6c 65 29 20 45 58 | 54 32 28 46 49 4c 45 20 |file) EX|T2(FILE |
|00002020| 2a 2c 69 6e 74 29 20 20 | 20 20 20 20 20 20 20 20 |*,int) | |
|00002030| 20 3d 20 73 63 5f 72 65 | 61 64 5f 66 69 6c 65 3b | = sc_re|ad_file;|
|00002040| 0a 2b 20 76 6f 69 64 20 | 28 2a 77 72 69 74 65 5f |.+ void |(*write_|
|00002050| 66 69 6c 65 29 20 45 58 | 54 32 28 46 49 4c 45 20 |file) EX|T2(FILE |
|00002060| 2a 2c 73 74 72 75 63 74 | 20 72 6e 67 20 2a 29 20 |*,struct| rng *) |
|00002070| 3d 20 73 63 5f 77 72 69 | 74 65 5f 66 69 6c 65 3b |= sc_wri|te_file;|
|00002080| 0a 2b 20 69 6e 74 20 28 | 2a 73 65 74 5f 66 69 6c |.+ int (|*set_fil|
|00002090| 65 5f 6f 70 74 73 29 20 | 45 58 54 32 28 69 6e 74 |e_opts) |EXT2(int|
|000020a0| 2c 20 63 68 61 72 20 2a | 29 09 20 20 20 20 20 3d |, char *|). =|
|000020b0| 20 73 63 5f 73 65 74 5f | 6f 70 74 69 6f 6e 73 3b | sc_set_|options;|
|000020c0| 0a 2b 20 76 6f 69 64 20 | 28 2a 73 68 6f 77 5f 66 |.+ void |(*show_f|
|000020d0| 69 6c 65 5f 6f 70 74 73 | 29 20 45 58 54 30 28 29 |ile_opts|) EXT0()|
|000020e0| 09 09 20 20 20 20 20 3d | 20 73 63 5f 73 68 6f 77 |.. =| sc_show|
|000020f0| 5f 6f 70 74 69 6f 6e 73 | 3b 0a 20 20 0a 20 20 69 |_options|;. . i|
|00002100| 6e 74 20 6e 5f 62 6f 75 | 6e 64 5f 6d 61 63 72 6f |nt n_bou|nd_macro|
|00002110| 73 3b 0a 20 20 73 74 72 | 75 63 74 20 72 6e 67 20 |s;. str|uct rng |
|00002120| 2a 62 6f 75 6e 64 5f 6d | 61 63 72 6f 73 3b 0a 2a |*bound_m|acros;.*|
|00002130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00002140| 2a 2a 20 36 37 39 2c 36 | 38 35 20 2a 2a 2a 2a 0a |** 679,6|85 ****.|
|00002150| 20 20 65 78 74 65 72 6e | 20 76 6f 69 64 20 73 65 | extern| void se|
|00002160| 74 5f 66 6f 72 6d 61 74 | 28 29 3b 0a 20 20 65 78 |t_format|();. ex|
|00002170| 74 65 72 6e 20 76 6f 69 | 64 20 6d 6f 76 65 5f 72 |tern voi|d move_r|
|00002180| 65 67 69 6f 6e 28 29 3b | 0a 20 20 65 78 74 65 72 |egion();|. exter|
|00002190| 6e 20 76 6f 69 64 20 64 | 65 6c 65 74 65 5f 72 65 |n void d|elete_re|
|000021a0| 67 69 6f 6e 28 29 3b 0a | 21 20 65 78 74 65 72 6e |gion();.|! extern|
|000021b0| 20 76 6f 69 64 20 66 6f | 72 6d 61 74 5f 61 72 65 | void fo|rmat_are|
|000021c0| 61 28 29 3b 0a 20 20 65 | 78 74 65 72 6e 20 76 6f |a();. e|xtern vo|
|000021d0| 69 64 20 6f 70 65 6e 5f | 77 69 6e 64 6f 77 28 29 |id open_|window()|
|000021e0| 3b 0a 20 20 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |;. exte|rn void |
|000021f0| 63 6c 6f 73 65 5f 77 69 | 6e 64 6f 77 28 29 3b 0a |close_wi|ndow();.|
|00002200| 20 20 65 78 74 65 72 6e | 20 76 6f 69 64 20 67 6f | extern| void go|
|00002210| 74 6f 5f 77 69 6e 64 6f | 77 28 29 3b 0a 2d 2d 2d |to_windo|w();.---|
|00002220| 20 36 39 30 2c 36 39 36 | 20 2d 2d 2d 2d 0a 20 20 | 690,696| ----. |
|00002230| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 73 65 74 5f |extern v|oid set_|
|00002240| 66 6f 72 6d 61 74 28 29 | 3b 0a 20 20 65 78 74 65 |format()|;. exte|
|00002250| 72 6e 20 76 6f 69 64 20 | 6d 6f 76 65 5f 72 65 67 |rn void |move_reg|
|00002260| 69 6f 6e 28 29 3b 0a 20 | 20 65 78 74 65 72 6e 20 |ion();. | extern |
|00002270| 76 6f 69 64 20 64 65 6c | 65 74 65 5f 72 65 67 69 |void del|ete_regi|
|00002280| 6f 6e 28 29 3b 0a 21 20 | 65 78 74 65 72 6e 20 76 |on();.! |extern v|
|00002290| 6f 69 64 20 66 6f 72 6d | 61 74 5f 61 72 65 61 20 |oid form|at_area |
|000022a0| 46 55 4e 31 28 73 74 72 | 75 63 74 20 72 6e 67 20 |FUN1(str|uct rng |
|000022b0| 2a 2c 66 29 3b 0a 20 20 | 65 78 74 65 72 6e 20 76 |*,f);. |extern v|
|000022c0| 6f 69 64 20 6f 70 65 6e | 5f 77 69 6e 64 6f 77 28 |oid open|_window(|
|000022d0| 29 3b 0a 20 20 65 78 74 | 65 72 6e 20 76 6f 69 64 |);. ext|ern void|
|000022e0| 20 63 6c 6f 73 65 5f 77 | 69 6e 64 6f 77 28 29 3b | close_w|indow();|
|000022f0| 0a 20 20 65 78 74 65 72 | 6e 20 76 6f 69 64 20 67 |. exter|n void g|
|00002300| 6f 74 6f 5f 77 69 6e 64 | 6f 77 28 29 3b 0a 2a 2a |oto_wind|ow();.**|
|00002310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 2a 2a |********|*****.**|
|00002320| 2a 20 39 31 32 2c 39 31 | 37 20 2a 2a 2a 2a 0a 2d |* 912,91|7 ****.-|
|00002330| 2d 2d 20 39 32 33 2c 39 | 33 30 20 2d 2d 2d 2d 0a |-- 923,9|30 ----.|
|00002340| 20 20 0a 20 20 23 65 6c | 73 65 0a 20 20 23 69 66 | . #el|se. #if|
|00002350| 20 21 64 65 66 69 6e 65 | 64 28 53 49 47 49 4f 29 | !define|d(SIGIO)|
|00002360| 0a 2b 20 23 75 6e 64 65 | 66 20 4e 43 0a 2b 20 23 |.+ #unde|f NC.+ #|
|00002370| 75 6e 64 65 66 20 48 5a | 20 0a 20 20 23 69 6e 63 |undef HZ| . #inc|
|00002380| 6c 75 64 65 20 3c 63 75 | 72 73 65 73 2e 68 3e 0a |lude <cu|rses.h>.|
|00002390| 20 20 0a 20 20 69 6e 74 | 20 69 6e 74 72 31 20 3d | . int| intr1 =|
|000023a0| 20 30 3b 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | 0;.****|********|
|000023b0| 2a 2a 2a 0a 2a 2a 2a 20 | 31 32 33 36 2c 31 32 34 |***.*** |1236,124|
|000023c0| 32 20 2a 2a 2a 2a 0a 2d | 2d 2d 20 31 32 34 39 2c |2 ****.-|-- 1249,|
|000023d0| 31 32 35 39 20 2d 2d 2d | 2d 0a 20 20 09 09 64 62 |1259 ---|-. ..db|
|000023e0| 67 5f 73 68 6f 77 5f 77 | 69 6e 73 28 29 3b 0a 20 |g_show_w|ins();. |
|000023f0| 20 09 09 62 72 65 61 6b | 3b 0a 20 20 09 63 61 73 | ..break|;. .cas|
|00002400| 65 20 27 6b 27 3a 0a 2b | 20 23 69 66 64 65 66 20 |e 'k':.+| #ifdef |
|00002410| 5f 5f 54 55 52 42 4f 43 | 5f 5f 0a 20 20 09 09 74 |__TURBOC|__. ..t|
|00002420| 65 78 74 5f 6c 69 6e 65 | 28 22 69 5f 69 6e 20 25 |ext_line|("i_in %|
|00002430| 64 20 20 69 5f 63 6e 74 | 20 25 64 20 20 68 61 76 |d i_cnt| %d hav|
|00002440| 65 5f 69 6e 70 75 74 20 | 25 64 22 2c 69 5f 69 6e |e_input |%d",i_in|
|00002450| 2c 69 5f 63 6e 74 2c 68 | 61 76 65 5f 6b 62 64 5f |,i_cnt,h|ave_kbd_|
|00002460| 69 6e 70 75 74 29 3b 0a | 2b 20 23 65 6c 73 65 0a |input);.|+ #else.|
|00002470| 2b 20 70 75 74 73 28 22 | 4f 4b 3e 22 29 3b 0a 2b |+ puts("|OK>");.+|
|00002480| 20 23 65 6e 64 69 66 0a | 20 20 09 09 62 72 65 61 | #endif.| ..brea|
|00002490| 6b 3b 0a 20 20 09 7d 0a | 20 20 09 74 65 78 74 5f |k;. .}.| .text_|
|000024a0| 66 69 6e 69 73 68 28 29 | 3b 0a 2a 2a 2a 2a 2a 2a |finish()|;.******|
|000024b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 31 33 |********|*.*** 13|
|000024c0| 31 34 2c 31 33 32 30 20 | 2a 2a 2a 2a 0a 20 20 09 |14,1320 |****. .|
|000024d0| 73 65 74 62 75 66 66 65 | 72 28 73 74 64 6f 75 74 |setbuffe|r(stdout|
|000024e0| 2c 62 75 66 2c 73 69 7a | 65 6f 66 28 62 75 66 29 |,buf,siz|eof(buf)|
|000024f0| 29 3b 0a 20 20 23 65 6e | 64 69 66 0a 20 20 09 69 |);. #en|dif. .i|
|00002500| 66 28 61 72 67 63 3c 32 | 20 7c 7c 20 73 74 72 63 |f(argc<2| || strc|
|00002510| 6d 70 28 61 72 67 76 5b | 31 5d 2c 22 2d 71 22 29 |mp(argv[|1],"-q")|
|00002520| 29 20 7b 0a 21 20 09 09 | 69 66 28 21 67 65 74 65 |) {.! ..|if(!gete|
|00002530| 6e 76 28 22 4f 4c 45 4f | 22 29 29 20 7b 0a 20 20 |nv("OLEO|")) {. |
|00002540| 09 09 09 66 70 72 69 6e | 74 66 28 73 74 64 6f 75 |...fprin|tf(stdou|
|00002550| 74 2c 22 4f 6c 65 6f 20 | 76 65 72 73 69 6f 6e 20 |t,"Oleo |version |
|00002560| 30 2e 30 33 2e 32 2c 20 | 43 6f 70 79 72 69 67 68 |0.03.2, |Copyrigh|
|00002570| 74 20 28 43 29 20 31 39 | 39 30 20 46 72 65 65 20 |t (C) 19|90 Free |
|00002580| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|00002590| 69 6f 6e 2c 20 49 6e 63 | 2e 5c 6e 22 29 3b 0a 20 |ion, Inc|.\n");. |
|000025a0| 20 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 6f | ...fpri|ntf(stdo|
|000025b0| 75 74 2c 22 54 68 65 72 | 65 20 69 73 20 41 42 53 |ut,"Ther|e is ABS|
|000025c0| 4f 4c 55 54 45 4c 59 20 | 4e 4f 20 57 41 52 52 41 |OLUTELY |NO WARRA|
|000025d0| 4e 54 59 20 66 6f 72 20 | 4f 6c 65 6f 3b 20 73 65 |NTY for |Oleo; se|
|000025e0| 65 20 74 68 65 20 66 69 | 6c 65 20 43 4f 50 59 49 |e the fi|le COPYI|
|000025f0| 4e 47 5c 6e 22 29 3b 0a | 20 20 09 09 09 66 70 72 |NG\n");.| ...fpr|
|00002600| 69 6e 74 66 28 73 74 64 | 6f 75 74 2c 22 66 6f 72 |intf(std|out,"for|
|00002610| 20 64 65 74 61 69 6c 73 | 2e 20 20 4f 6c 65 6f 20 | details|. Oleo |
|00002620| 69 73 20 66 72 65 65 20 | 73 6f 66 74 77 61 72 65 |is free |software|
|00002630| 20 61 6e 64 20 79 6f 75 | 20 61 72 65 20 77 65 6c | and you| are wel|
|00002640| 63 6f 6d 65 20 74 6f 20 | 64 69 73 74 72 69 62 75 |come to |distribu|
|00002650| 74 65 5c 6e 22 29 3b 0a | 2d 2d 2d 20 31 33 33 31 |te\n");.|--- 1331|
|00002660| 2c 31 33 33 37 20 2d 2d | 2d 2d 0a 20 20 09 73 65 |,1337 --|--. .se|
|00002670| 74 62 75 66 66 65 72 28 | 73 74 64 6f 75 74 2c 62 |tbuffer(|stdout,b|
|00002680| 75 66 2c 73 69 7a 65 6f | 66 28 62 75 66 29 29 3b |uf,sizeo|f(buf));|
|00002690| 0a 20 20 23 65 6e 64 69 | 66 0a 20 20 09 69 66 28 |. #endi|f. .if(|
|000026a0| 61 72 67 63 3c 32 20 7c | 7c 20 73 74 72 63 6d 70 |argc<2 ||| strcmp|
|000026b0| 28 61 72 67 76 5b 31 5d | 2c 22 2d 71 22 29 29 20 |(argv[1]|,"-q")) |
|000026c0| 7b 0a 21 20 09 09 69 66 | 28 67 65 74 65 6e 76 28 |{.! ..if|(getenv(|
|000026d0| 22 4f 4c 45 4f 22 29 29 | 20 7b 0a 20 20 09 09 09 |"OLEO"))| {. ...|
|000026e0| 66 70 72 69 6e 74 66 28 | 73 74 64 6f 75 74 2c 22 |fprintf(|stdout,"|
|000026f0| 4f 6c 65 6f 20 76 65 72 | 73 69 6f 6e 20 30 2e 30 |Oleo ver|sion 0.0|
|00002700| 33 2e 32 2c 20 43 6f 70 | 79 72 69 67 68 74 20 28 |3.2, Cop|yright (|
|00002710| 43 29 20 31 39 39 30 20 | 46 72 65 65 20 53 6f 66 |C) 1990 |Free Sof|
|00002720| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00002730| 2c 20 49 6e 63 2e 5c 6e | 22 29 3b 0a 20 20 09 09 |, Inc.\n|");. ..|
|00002740| 09 66 70 72 69 6e 74 66 | 28 73 74 64 6f 75 74 2c |.fprintf|(stdout,|
|00002750| 22 54 68 65 72 65 20 69 | 73 20 41 42 53 4f 4c 55 |"There i|s ABSOLU|
|00002760| 54 45 4c 59 20 4e 4f 20 | 57 41 52 52 41 4e 54 59 |TELY NO |WARRANTY|
|00002770| 20 66 6f 72 20 4f 6c 65 | 6f 3b 20 73 65 65 20 74 | for Ole|o; see t|
|00002780| 68 65 20 66 69 6c 65 20 | 43 4f 50 59 49 4e 47 5c |he file |COPYING\|
|00002790| 6e 22 29 3b 0a 20 20 09 | 09 09 66 70 72 69 6e 74 |n");. .|..fprint|
|000027a0| 66 28 73 74 64 6f 75 74 | 2c 22 66 6f 72 20 64 65 |f(stdout|,"for de|
|000027b0| 74 61 69 6c 73 2e 20 20 | 4f 6c 65 6f 20 69 73 20 |tails. |Oleo is |
|000027c0| 66 72 65 65 20 73 6f 66 | 74 77 61 72 65 20 61 6e |free sof|tware an|
|000027d0| 64 20 79 6f 75 20 61 72 | 65 20 77 65 6c 63 6f 6d |d you ar|e welcom|
|000027e0| 65 20 74 6f 20 64 69 73 | 74 72 69 62 75 74 65 5c |e to dis|tribute\|
|000027f0| 6e 22 29 3b 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n");.***|********|
|00002800| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 33 39 36 2c 31 34 |****.***| 1396,14|
|00002810| 30 33 20 2a 2a 2a 2a 0a | 2d 2d 2d 20 31 34 31 33 |03 ****.|--- 1413|
|00002820| 2c 31 34 32 32 20 2d 2d | 2d 2d 0a 20 20 23 69 66 |,1422 --|--. #if|
|00002830| 64 65 66 20 53 49 47 51 | 55 49 54 0a 20 20 09 73 |def SIGQ|UIT. .s|
|00002840| 69 67 6e 61 6c 28 53 49 | 47 51 55 49 54 2c 67 6f |ignal(SI|GQUIT,go|
|00002850| 74 5f 73 69 67 29 3b 0a | 20 20 09 73 69 67 6e 61 |t_sig);.| .signa|
|00002860| 6c 28 53 49 47 49 4c 4c | 2c 67 6f 74 5f 73 69 67 |l(SIGILL|,got_sig|
|00002870| 29 3b 0a 2b 20 23 69 66 | 6e 64 65 66 20 6c 69 6e |);.+ #if|ndef lin|
|00002880| 75 78 0a 20 20 09 73 69 | 67 6e 61 6c 28 53 49 47 |ux. .si|gnal(SIG|
|00002890| 45 4d 54 2c 67 6f 74 5f | 73 69 67 29 3b 0a 20 20 |EMT,got_|sig);. |
|000028a0| 09 73 69 67 6e 61 6c 28 | 53 49 47 42 55 53 2c 67 |.signal(|SIGBUS,g|
|000028b0| 6f 74 5f 73 69 67 29 3b | 0a 2b 20 23 65 6e 64 69 |ot_sig);|.+ #endi|
|000028c0| 66 0a 20 20 09 73 69 67 | 6e 61 6c 28 53 49 47 53 |f. .sig|nal(SIGS|
|000028d0| 45 47 56 2c 67 6f 74 5f | 73 69 67 29 3b 0a 20 20 |EGV,got_|sig);. |
|000028e0| 09 73 69 67 6e 61 6c 28 | 53 49 47 50 49 50 45 2c |.signal(|SIGPIPE,|
|000028f0| 67 6f 74 5f 73 69 67 29 | 3b 0a 20 20 23 65 6e 64 |got_sig)|;. #end|
|00002900| 69 66 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |if.*****|********|
|00002910| 2a 2a 0a 2a 2a 2a 20 33 | 31 37 37 2c 33 31 38 33 |**.*** 3|177,3183|
|00002920| 20 2a 2a 2a 2a 0a 20 20 | 09 2f 2a 20 74 6f 70 63 | ****. |./* topc|
|00002930| 6c 65 61 72 3d 32 3b 20 | 2a 2f 0a 20 20 7d 0a 20 |lear=2; |*/. }. |
|00002940| 20 0a 21 20 73 74 61 74 | 69 63 20 76 6f 69 64 0a | .! stat|ic void.|
|00002950| 20 20 66 6f 72 6d 61 74 | 5f 61 72 65 61 20 46 55 | format|_area FU|
|00002960| 4e 31 28 73 74 72 75 63 | 74 20 72 6e 67 20 2a 2c |N1(struc|t rng *,|
|00002970| 66 29 0a 20 20 7b 0a 20 | 20 09 69 6e 74 20 63 3b |f). {. | .int c;|
|00002980| 0a 2d 2d 2d 20 33 31 39 | 36 2c 33 32 30 32 20 2d |.--- 319|6,3202 -|
|00002990| 2d 2d 2d 0a 20 20 09 2f | 2a 20 74 6f 70 63 6c 65 |---. ./|* topcle|
|000029a0| 61 72 3d 32 3b 20 2a 2f | 0a 20 20 7d 0a 20 20 0a |ar=2; */|. }. .|
|000029b0| 21 20 76 6f 69 64 0a 20 | 20 66 6f 72 6d 61 74 5f |! void. | format_|
|000029c0| 61 72 65 61 20 46 55 4e | 31 28 73 74 72 75 63 74 |area FUN|1(struct|
|000029d0| 20 72 6e 67 20 2a 2c 66 | 29 0a 20 20 7b 0a 20 20 | rng *,f|). {. |
|000029e0| 09 69 6e 74 20 63 3b 0a | 2a 2a 2a 2a 2a 2a 2a 2a |.int c;.|********|
|000029f0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 33 34 30 36 |*******.|*** 3406|
|00002a00| 2c 33 34 31 36 20 2a 2a | 2a 2a 0a 20 20 73 74 61 |,3416 **|**. sta|
|00002a10| 74 69 63 20 76 6f 69 64 | 0a 20 20 71 75 69 74 5f |tic void|. quit_|
|00002a20| 63 6d 64 20 46 55 4e 30 | 28 29 0a 20 20 7b 0a 2d |cmd FUN0|(). {.-|
|00002a30| 20 09 69 6e 74 20 63 3b | 0a 20 20 0a 20 20 09 63 | .int c;|. . .c|
|00002a40| 6c 6f 73 65 5f 64 69 73 | 70 6c 61 79 28 29 3b 0a |lose_dis|play();.|
|00002a50| 20 20 23 69 66 64 65 66 | 20 46 41 53 59 4e 43 0a | #ifdef| FASYNC.|
|00002a60| 21 20 09 63 3d 66 63 6e | 74 6c 28 30 2c 46 5f 53 |! .c=fcn|tl(0,F_S|
|00002a70| 45 54 46 4c 2c 74 65 72 | 6d 5f 66 6c 61 67 29 3b |ETFL,ter|m_flag);|
|00002a80| 0a 20 20 23 65 6e 64 69 | 66 0a 20 20 23 69 66 64 |. #endi|f. #ifd|
|00002a90| 65 66 20 46 49 4f 53 53 | 41 49 4f 53 54 41 54 0a |ef FIOSS|AIOSTAT.|
|00002aa0| 20 20 09 69 66 28 28 74 | 65 72 6d 5f 66 6c 61 67 | .if((t|erm_flag|
|00002ab0| 26 31 29 3d 3d 30 29 20 | 7b 0a 2d 2d 2d 20 33 34 |&1)==0) |{.--- 34|
|00002ac0| 32 35 2c 33 34 33 37 20 | 2d 2d 2d 2d 0a 20 20 73 |25,3437 |----. s|
|00002ad0| 74 61 74 69 63 20 76 6f | 69 64 0a 20 20 71 75 69 |tatic vo|id. qui|
|00002ae0| 74 5f 63 6d 64 20 46 55 | 4e 30 28 29 0a 20 20 7b |t_cmd FU|N0(). {|
|00002af0| 0a 20 20 0a 20 20 09 63 | 6c 6f 73 65 5f 64 69 73 |. . .c|lose_dis|
|00002b00| 70 6c 61 79 28 29 3b 0a | 20 20 23 69 66 64 65 66 |play();.| #ifdef|
|00002b10| 20 46 41 53 59 4e 43 0a | 21 20 09 7b 0a 21 20 09 | FASYNC.|! .{.! .|
|00002b20| 09 69 6e 74 20 63 3b 0a | 21 20 09 09 63 3d 66 63 |.int c;.|! ..c=fc|
|00002b30| 6e 74 6c 28 30 2c 46 5f | 53 45 54 46 4c 2c 74 65 |ntl(0,F_|SETFL,te|
|00002b40| 72 6d 5f 66 6c 61 67 29 | 3b 0a 21 20 09 7d 0a 20 |rm_flag)|;.! .}. |
|00002b50| 20 23 65 6e 64 69 66 0a | 20 20 23 69 66 64 65 66 | #endif.| #ifdef|
|00002b60| 20 46 49 4f 53 53 41 49 | 4f 53 54 41 54 0a 20 20 | FIOSSAI|OSTAT. |
|00002b70| 09 69 66 28 28 74 65 72 | 6d 5f 66 6c 61 67 26 31 |.if((ter|m_flag&1|
|00002b80| 29 3d 3d 30 29 20 7b 0a | 2a 2a 2a 20 6c 69 73 74 |)==0) {.|*** list|
|00002b90| 2e 63 09 54 68 75 20 4d | 61 79 20 20 32 20 31 38 |.c.Thu M|ay 2 18|
|00002ba0| 3a 35 39 3a 33 32 20 31 | 39 39 31 0a 2d 2d 2d 20 |:59:32 1|991.--- |
|00002bb0| 2e 2e 2f 6f 6c 65 6f 2f | 6c 69 73 74 2e 63 09 57 |../oleo/|list.c.W|
|00002bc0| 65 64 20 4d 61 72 20 32 | 35 20 30 31 3a 30 37 3a |ed Mar 2|5 01:07:|
|00002bd0| 33 35 20 31 39 39 32 0a | 2a 2a 2a 2a 2a 2a 2a 2a |35 1992.|********|
|00002be0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 31 32 30 2c |*******.|*** 120,|
|00002bf0| 31 32 36 20 2a 2a 2a 2a | 0a 20 20 09 09 09 09 09 |126 ****|. .....|
|00002c00| 66 70 75 74 73 28 66 6c | 74 5f 74 6f 5f 73 74 72 |fputs(fl|t_to_str|
|00002c10| 28 63 70 2d 3e 63 65 6c | 6c 5f 66 6c 74 29 2c 66 |(cp->cel|l_flt),f|
|00002c20| 70 29 3b 0a 20 20 09 09 | 09 09 09 62 72 65 61 6b |p);. ..|...break|
|00002c30| 3b 0a 20 20 09 09 09 09 | 63 61 73 65 20 54 59 50 |;. ....|case TYP|
|00002c40| 5f 49 4e 54 3a 0a 21 20 | 09 09 09 09 09 66 70 72 |_INT:.! |.....fpr|
|00002c50| 69 6e 74 66 28 66 70 2c | 22 25 6c 64 22 2c 63 70 |intf(fp,|"%ld",cp|
|00002c60| 2d 3e 63 65 6c 6c 5f 66 | 6c 74 29 3b 0a 20 20 09 |->cell_f|lt);. .|
|00002c70| 09 09 09 09 62 72 65 61 | 6b 3b 0a 20 20 09 09 09 |....brea|k;. ...|
|00002c80| 09 63 61 73 65 20 54 59 | 50 5f 53 54 52 3a 0a 20 |.case TY|P_STR:. |
|00002c90| 20 09 09 09 09 09 66 70 | 75 74 73 28 63 70 2d 3e | .....fp|uts(cp->|
|00002ca0| 63 65 6c 6c 5f 73 74 72 | 2c 66 70 29 3b 0a 2d 2d |cell_str|,fp);.--|
|00002cb0| 2d 20 31 32 30 2c 31 32 | 37 20 2d 2d 2d 2d 0a 20 |- 120,12|7 ----. |
|00002cc0| 20 09 09 09 09 09 66 70 | 75 74 73 28 66 6c 74 5f | .....fp|uts(flt_|
|00002cd0| 74 6f 5f 73 74 72 28 63 | 70 2d 3e 63 65 6c 6c 5f |to_str(c|p->cell_|
|00002ce0| 66 6c 74 29 2c 66 70 29 | 3b 0a 20 20 09 09 09 09 |flt),fp)|;. ....|
|00002cf0| 09 62 72 65 61 6b 3b 0a | 20 20 09 09 09 09 63 61 |.break;.| ....ca|
|00002d00| 73 65 20 54 59 50 5f 49 | 4e 54 3a 0a 21 20 09 09 |se TYP_I|NT:.! ..|
|00002d10| 09 09 09 2f 2a 66 70 72 | 69 6e 74 66 28 66 70 2c |.../*fpr|intf(fp,|
|00002d20| 22 25 6c 64 22 2c 63 70 | 2d 3e 63 65 6c 6c 5f 66 |"%ld",cp|->cell_f|
|00002d30| 6c 74 29 3b 20 3f 3f 3f | 2a 2f 0a 21 20 09 09 09 |lt); ???|*/.! ...|
|00002d40| 09 09 66 70 72 69 6e 74 | 66 28 66 70 2c 22 25 6c |..fprint|f(fp,"%l|
|00002d50| 64 22 2c 63 70 2d 3e 63 | 65 6c 6c 5f 69 6e 74 29 |d",cp->c|ell_int)|
|00002d60| 3b 0a 20 20 09 09 09 09 | 09 62 72 65 61 6b 3b 0a |;. ....|.break;.|
|00002d70| 20 20 09 09 09 09 63 61 | 73 65 20 54 59 50 5f 53 | ....ca|se TYP_S|
|00002d80| 54 52 3a 0a 20 20 09 09 | 09 09 09 66 70 75 74 73 |TR:. ..|...fputs|
|00002d90| 28 63 70 2d 3e 63 65 6c | 6c 5f 73 74 72 2c 66 70 |(cp->cel|l_str,fp|
|00002da0| 29 3b 0a 2a 2a 2a 20 70 | 61 6e 69 63 2e 63 09 4d |);.*** p|anic.c.M|
|00002db0| 6f 6e 20 41 70 72 20 32 | 39 20 31 38 3a 33 32 3a |on Apr 2|9 18:32:|
|00002dc0| 32 35 20 31 39 39 31 0a | 2d 2d 2d 20 2e 2e 2f 6f |25 1991.|--- ../o|
|00002dd0| 6c 65 6f 2f 70 61 6e 69 | 63 2e 63 09 57 65 64 20 |leo/pani|c.c.Wed |
|00002de0| 4d 61 72 20 32 35 20 30 | 30 3a 35 30 3a 30 31 20 |Mar 25 0|0:50:01 |
|00002df0| 31 39 39 32 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1992.***|********|
|00002e00| 2a 2a 2a 2a 0a 2a 2a 2a | 20 31 38 2c 32 33 20 2a |****.***| 18,23 *|
|00002e10| 2a 2a 2a 0a 2d 2d 2d 20 | 31 38 2c 32 34 20 2d 2d |***.--- |18,24 --|
|00002e20| 2d 2d 0a 20 20 0a 20 20 | 23 75 6e 64 65 66 20 4e |--. . |#undef N|
|00002e30| 55 4c 4c 0a 20 20 23 69 | 6e 63 6c 75 64 65 20 3c |ULL. #i|nclude <|
|00002e40| 73 74 64 69 6f 2e 68 3e | 0a 2b 20 23 69 6e 63 6c |stdio.h>|.+ #incl|
|00002e50| 75 64 65 20 3c 75 6e 69 | 73 74 64 2e 68 3e 0a 20 |ude <uni|std.h>. |
|00002e60| 20 23 69 6e 63 6c 75 64 | 65 20 22 66 75 6e 63 64 | #includ|e "funcd|
|00002e70| 65 66 2e 68 22 0a 20 20 | 23 69 6e 63 6c 75 64 65 |ef.h". |#include|
|00002e80| 20 22 73 79 73 64 65 66 | 2e 68 22 0a 20 20 0a 2a | "sysdef|.h". .*|
|00002e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00002ea0| 2a 2a 20 32 37 2c 33 34 | 20 2a 2a 2a 2a 0a 20 20 |** 27,34| ****. |
|00002eb0| 0a 20 20 65 78 74 65 72 | 6e 20 69 6e 74 20 64 75 |. exter|n int du|
|00002ec0| 70 20 45 58 54 31 28 69 | 6e 74 29 3b 0a 20 20 65 |p EXT1(i|nt);. e|
|00002ed0| 78 74 65 72 6e 20 69 6e | 74 20 63 6c 6f 73 65 20 |xtern in|t close |
|00002ee0| 45 58 54 31 28 69 6e 74 | 29 3b 0a 21 20 65 78 74 |EXT1(int|);.! ext|
|00002ef0| 65 72 6e 20 76 6f 69 64 | 20 2a 73 62 72 6b 20 45 |ern void| *sbrk E|
|00002f00| 58 54 31 28 73 69 7a 65 | 5f 74 29 3b 0a 21 20 65 |XT1(size|_t);.! e|
|00002f10| 78 74 65 72 6e 20 76 6f | 69 64 20 2a 62 72 6b 20 |xtern vo|id *brk |
|00002f20| 45 58 54 31 28 76 6f 69 | 64 20 2a 29 3b 0a 20 20 |EXT1(voi|d *);. |
|00002f30| 0a 20 20 76 6f 69 64 0a | 20 20 70 61 6e 69 63 5f |. void.| panic_|
|00002f40| 77 72 69 74 65 5f 66 69 | 6c 65 20 46 55 4e 32 28 |write_fi|le FUN2(|
|00002f50| 46 49 4c 45 20 2a 2c 66 | 70 2c 20 73 74 72 75 63 |FILE *,f|p, struc|
|00002f60| 74 20 72 6e 67 20 2a 2c | 72 6e 67 29 0a 2d 2d 2d |t rng *,|rng).---|
|00002f70| 20 32 38 2c 33 34 20 2d | 2d 2d 2d 0a 20 20 0a 20 | 28,34 -|---. . |
|00002f80| 20 65 78 74 65 72 6e 20 | 69 6e 74 20 64 75 70 20 | extern |int dup |
|00002f90| 45 58 54 31 28 69 6e 74 | 29 3b 0a 20 20 65 78 74 |EXT1(int|);. ext|
|00002fa0| 65 72 6e 20 69 6e 74 20 | 63 6c 6f 73 65 20 45 58 |ern int |close EX|
|00002fb0| 54 31 28 69 6e 74 29 3b | 0a 21 20 65 78 74 65 72 |T1(int);|.! exter|
|00002fc0| 6e 20 76 6f 69 64 20 72 | 65 63 65 6e 74 65 72 5f |n void r|ecenter_|
|00002fd0| 61 6c 6c 5f 77 69 6e 28 | 76 6f 69 64 29 3b 0a 20 |all_win(|void);. |
|00002fe0| 20 0a 20 20 76 6f 69 64 | 0a 20 20 70 61 6e 69 63 | . void|. panic|
|00002ff0| 5f 77 72 69 74 65 5f 66 | 69 6c 65 20 46 55 4e 32 |_write_f|ile FUN2|
|00003000| 28 46 49 4c 45 20 2a 2c | 66 70 2c 20 73 74 72 75 |(FILE *,|fp, stru|
|00003010| 63 74 20 72 6e 67 20 2a | 2c 72 6e 67 29 0a 2a 2a |ct rng *|,rng).**|
|00003020| 2a 20 72 65 66 2e 63 09 | 4d 6f 6e 20 4d 61 79 20 |* ref.c.|Mon May |
|00003030| 20 36 20 31 36 3a 30 34 | 3a 30 32 20 31 39 39 31 | 6 16:04|:02 1991|
|00003040| 0a 2d 2d 2d 20 2e 2e 2f | 6f 6c 65 6f 2f 72 65 66 |.--- ../|oleo/ref|
|00003050| 2e 63 09 54 75 65 20 4d | 61 72 20 32 34 20 32 33 |.c.Tue M|ar 24 23|
|00003060| 3a 32 37 3a 34 33 20 31 | 39 39 32 0a 2a 2a 2a 2a |:27:43 1|992.****|
|00003070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 2a 2a 2a 20 |********|***.*** |
|00003080| 32 38 2c 33 33 20 2a 2a | 2a 2a 0a 2d 2d 2d 20 32 |28,33 **|**.--- 2|
|00003090| 38 2c 33 34 20 2d 2d 2d | 2d 0a 20 20 23 69 6e 63 |8,34 ---|-. #inc|
|000030a0| 6c 75 64 65 20 22 63 65 | 6c 6c 2e 68 22 0a 20 20 |lude "ce|ll.h". |
|000030b0| 23 69 6e 63 6c 75 64 65 | 20 22 65 76 61 6c 2e 68 |#include| "eval.h|
|000030c0| 22 0a 20 20 0a 2b 20 75 | 6e 73 69 67 6e 65 64 20 |". .+ u|nsigned |
|000030d0| 75 61 6c 61 72 6d 20 46 | 55 4e 32 28 75 6e 73 69 |ualarm F|UN2(unsi|
|000030e0| 67 6e 65 64 2c 66 69 72 | 73 74 2c 20 75 6e 73 69 |gned,fir|st, unsi|
|000030f0| 67 6e 65 64 2c 6f 74 68 | 65 72 73 29 3b 0a 20 20 |gned,oth|ers);. |
|00003100| 65 78 74 65 72 6e 20 56 | 4f 49 44 53 54 41 52 20 |extern V|OIDSTAR |
|00003110| 68 61 73 68 5f 6e 65 77 | 28 29 3b 0a 20 20 65 78 |hash_new|();. ex|
|00003120| 74 65 72 6e 20 56 4f 49 | 44 53 54 41 52 20 68 61 |tern VOI|DSTAR ha|
|00003130| 73 68 5f 66 69 6e 64 28 | 29 3b 0a 20 20 65 78 74 |sh_find(|);. ext|
|00003140| 65 72 6e 20 63 68 61 72 | 20 2a 68 61 73 68 5f 69 |ern char| *hash_i|
|00003150| 6e 73 65 72 74 28 29 3b | 0a 2a 2a 2a 20 72 65 67 |nsert();|.*** reg|
|00003160| 69 6f 6e 73 2e 63 09 46 | 72 69 20 4d 61 79 20 20 |ions.c.F|ri May |
|00003170| 33 20 31 34 3a 31 34 3a | 35 32 20 31 39 39 31 0a |3 14:14:|52 1991.|
|00003180| 2d 2d 2d 20 2e 2e 2f 6f | 6c 65 6f 2f 72 65 67 69 |--- ../o|leo/regi|
|00003190| 6f 6e 73 2e 63 09 54 75 | 65 20 4d 61 72 20 32 34 |ons.c.Tu|e Mar 24|
|000031a0| 20 32 33 3a 35 31 3a 34 | 37 20 31 39 39 32 0a 2a | 23:51:4|7 1992.*|
|000031b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|000031c0| 2a 2a 20 33 37 2c 34 32 | 20 2a 2a 2a 2a 0a 2d 2d |** 37,42| ****.--|
|000031d0| 2d 20 33 37 2c 34 33 20 | 2d 2d 2d 2d 0a 20 20 65 |- 37,43 |----. e|
|000031e0| 78 74 65 72 6e 20 76 6f | 69 64 20 73 6f 72 74 20 |xtern vo|id sort |
|000031f0| 45 58 54 34 28 69 6e 74 | 2c 20 69 6e 74 28 2a 29 |EXT4(int|, int(*)|
|00003200| 28 69 6e 74 2c 69 6e 74 | 29 2c 76 6f 69 64 28 2a |(int,int|),void(*|
|00003210| 29 28 69 6e 74 2c 69 6e | 74 29 2c 76 6f 69 64 28 |)(int,in|t),void(|
|00003220| 2a 29 28 69 6e 74 2c 69 | 6e 74 29 29 3b 0a 20 20 |*)(int,i|nt));. |
|00003230| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 73 65 74 |extern c|har *set|
|00003240| 5f 6e 65 77 5f 76 61 6c | 75 65 20 45 58 54 34 28 |_new_val|ue EXT4(|
|00003250| 43 45 4c 4c 52 45 46 2c | 20 43 45 4c 4c 52 45 46 |CELLREF,| CELLREF|
|00003260| 2c 20 69 6e 74 2c 20 75 | 6e 69 6f 6e 20 76 61 6c |, int, u|nion val|
|00003270| 73 20 2a 29 3b 0a 20 20 | 65 78 74 65 72 6e 20 63 |s *);. |extern c|
|00003280| 68 61 72 20 2a 6e 65 77 | 5f 76 61 6c 75 65 20 45 |har *new|_value E|
|00003290| 58 54 33 28 43 45 4c 4c | 52 45 46 2c 20 43 45 4c |XT3(CELL|REF, CEL|
|000032a0| 4c 52 45 46 2c 20 63 68 | 61 72 20 2a 29 3b 0a 2b |LREF, ch|ar *);.+|
|000032b0| 20 65 78 74 65 72 6e 20 | 76 6f 69 64 20 63 6f 70 | extern |void cop|
|000032c0| 79 5f 63 65 6c 6c 20 46 | 55 4e 34 28 43 45 4c 4c |y_cell F|UN4(CELL|
|000032d0| 52 45 46 2c 72 66 2c 20 | 43 45 4c 4c 52 45 46 2c |REF,rf, |CELLREF,|
|000032e0| 63 66 2c 20 43 45 4c 4c | 52 45 46 2c 72 74 2c 20 |cf, CELL|REF,rt, |
|000032f0| 43 45 4c 4c 52 45 46 2c | 63 74 29 3b 0a 20 20 0a |CELLREF,|ct);. .|
|00003300| 20 20 65 78 74 65 72 6e | 20 76 6f 69 64 20 66 6c | extern| void fl|
|00003310| 75 73 68 5f 6f 6c 64 5f | 76 61 6c 75 65 20 45 58 |ush_old_|value EX|
|00003320| 54 30 28 29 3b 0a 20 20 | 0a 2a 2a 2a 20 73 74 72 |T0();. |.*** str|
|00003330| 69 6e 67 2e 63 09 4d 6f | 6e 20 41 70 72 20 32 39 |ing.c.Mo|n Apr 29|
|00003340| 20 31 38 3a 35 38 3a 33 | 31 20 31 39 39 31 0a 2d | 18:58:3|1 1991.-|
|00003350| 2d 2d 20 2e 2e 2f 6f 6c | 65 6f 2f 73 74 72 69 6e |-- ../ol|eo/strin|
|00003360| 67 2e 63 09 57 65 64 20 | 4d 61 72 20 32 35 20 30 |g.c.Wed |Mar 25 0|
|00003370| 31 3a 30 31 3a 31 39 20 | 31 39 39 32 0a 2a 2a 2a |1:01:19 |1992.***|
|00003380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 2a 2a 2a |********|****.***|
|00003390| 20 31 37 2c 32 32 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 | 17,22 *|***.--- |
|000033a0| 31 37 2c 32 33 20 2d 2d | 2d 2d 0a 20 20 74 68 65 |17,23 --|--. the|
|000033b0| 20 46 72 65 65 20 53 6f | 66 74 77 61 72 65 20 46 | Free So|ftware F|
|000033c0| 6f 75 6e 64 61 74 69 6f | 6e 2c 20 36 37 35 20 4d |oundatio|n, 675 M|
|000033d0| 61 73 73 20 41 76 65 2c | 20 43 61 6d 62 72 69 64 |ass Ave,| Cambrid|
|000033e0| 67 65 2c 20 4d 41 20 30 | 32 31 33 39 2c 20 55 53 |ge, MA 0|2139, US|
|000033f0| 41 2e 20 20 2a 2f 0a 20 | 20 0a 20 20 23 69 6e 63 |A. */. | . #inc|
|00003400| 6c 75 64 65 20 3c 63 74 | 79 70 65 2e 68 3e 0a 2b |lude <ct|ype.h>.+|
|00003410| 20 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f | #includ|e <stdio|
|00003420| 2e 68 3e 0a 20 20 23 69 | 6e 63 6c 75 64 65 20 22 |.h>. #i|nclude "|
|00003430| 66 75 6e 63 64 65 66 2e | 68 22 0a 20 20 23 64 65 |funcdef.|h". #de|
|00003440| 66 69 6e 65 20 6f 62 73 | 74 61 63 6b 5f 63 68 75 |fine obs|tack_chu|
|00003450| 6e 6b 5f 61 6c 6c 6f 63 | 20 63 6b 5f 6d 61 6c 6c |nk_alloc| ck_mall|
|00003460| 6f 63 0a 20 20 23 64 65 | 66 69 6e 65 20 6f 62 73 |oc. #de|fine obs|
|00003470| 74 61 63 6b 5f 63 68 75 | 6e 6b 5f 66 72 65 65 20 |tack_chu|nk_free |
|00003480| 66 72 65 65 0a 2a 2a 2a | 20 73 79 6c 6b 2e 63 09 |free.***| sylk.c.|
|00003490| 54 68 75 20 4d 61 79 20 | 20 32 20 31 35 3a 30 33 |Thu May | 2 15:03|
|000034a0| 3a 31 34 20 31 39 39 31 | 0a 2d 2d 2d 20 2e 2e 2f |:14 1991|.--- ../|
|000034b0| 6f 6c 65 6f 2f 73 79 6c | 6b 2e 63 09 57 65 64 20 |oleo/syl|k.c.Wed |
|000034c0| 4d 61 72 20 32 35 20 30 | 31 3a 31 31 3a 35 33 20 |Mar 25 0|1:11:53 |
|000034d0| 31 39 39 32 0a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |1992.***|********|
|000034e0| 2a 2a 2a 2a 0a 2a 2a 2a | 20 34 36 2c 35 31 20 2a |****.***| 46,51 *|
|000034f0| 2a 2a 2a 0a 2d 2d 2d 20 | 34 36 2c 35 34 20 2d 2d |***.--- |46,54 --|
|00003500| 2d 2d 0a 20 20 65 78 74 | 65 72 6e 20 76 6f 69 64 |--. ext|ern void|
|00003510| 20 63 6c 65 61 72 5f 73 | 70 72 65 61 64 73 68 65 | clear_s|preadshe|
|00003520| 65 74 20 45 58 54 30 28 | 29 3b 0a 20 20 0a 20 20 |et EXT0(|);. . |
|00003530| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 6e 65 77 |extern c|har *new|
|00003540| 5f 76 61 72 5f 76 61 6c | 75 65 20 45 58 54 33 28 |_var_val|ue EXT3(|
|00003550| 63 68 61 72 20 2a 2c 20 | 69 6e 74 2c 20 63 68 61 |char *, |int, cha|
|00003560| 72 20 2a 29 3b 0a 2b 20 | 65 78 74 65 72 6e 20 76 |r *);.+ |extern v|
|00003570| 6f 69 64 20 73 65 74 5f | 75 73 72 5f 73 74 61 74 |oid set_|usr_stat|
|00003580| 73 20 45 58 54 32 28 69 | 6e 74 2c 20 63 68 61 72 |s EXT2(i|nt, char|
|00003590| 20 2a 2a 29 3b 0a 2b 20 | 65 78 74 65 72 6e 20 76 | **);.+ |extern v|
|000035a0| 6f 69 64 20 67 65 74 5f | 75 73 72 5f 73 74 61 74 |oid get_|usr_stat|
|000035b0| 73 20 45 58 54 32 28 69 | 6e 74 2c 20 63 68 61 72 |s EXT2(i|nt, char|
|000035c0| 20 2a 2a 29 3b 0a 2b 20 | 65 78 74 65 72 6e 20 69 | **);.+ |extern i|
|000035d0| 6e 74 20 75 73 72 5f 73 | 65 74 5f 66 6d 74 73 20 |nt usr_s|et_fmts |
|000035e0| 45 58 54 30 28 29 3b 0a | 20 20 0a 20 20 65 78 74 |EXT0();.| . ext|
|000035f0| 65 72 6e 20 63 68 61 72 | 20 2a 72 65 61 64 5f 6e |ern char| *read_n|
|00003600| 65 77 5f 76 61 6c 75 65 | 20 45 58 54 34 28 43 45 |ew_value| EXT4(CE|
|00003610| 4c 4c 52 45 46 2c 20 43 | 45 4c 4c 52 45 46 2c 20 |LLREF, C|ELLREF, |
|00003620| 63 68 61 72 20 2a 2c 20 | 63 68 61 72 20 2a 29 3b |char *, |char *);|
|00003630| 0a 20 20 0a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |. .****|********|
|00003640| 2a 2a 2a 0a 2a 2a 2a 20 | 35 35 2c 36 30 20 2a 2a |***.*** |55,60 **|
|00003650| 2a 2a 0a 2d 2d 2d 20 35 | 38 2c 36 34 20 2d 2d 2d |**.--- 5|8,64 ---|
|00003660| 2d 0a 20 20 0a 20 20 65 | 78 74 65 72 6e 20 63 68 |-. . e|xtern ch|
|00003670| 61 72 20 2a 63 65 6c 6c | 5f 6e 61 6d 65 20 45 58 |ar *cell|_name EX|
|00003680| 54 32 28 43 45 4c 4c 52 | 45 46 2c 20 43 45 4c 4c |T2(CELLR|EF, CELL|
|00003690| 52 45 46 29 3b 0a 20 20 | 65 78 74 65 72 6e 20 63 |REF);. |extern c|
|000036a0| 68 61 72 20 2a 72 61 6e | 67 65 5f 6e 61 6d 65 20 |har *ran|ge_name |
|000036b0| 45 58 54 31 28 73 74 72 | 75 63 74 20 72 6e 67 20 |EXT1(str|uct rng |
|000036c0| 2a 29 3b 0a 2b 20 65 78 | 74 65 72 6e 20 76 6f 69 |*);.+ ex|tern voi|
|000036d0| 64 20 72 65 63 65 6e 74 | 65 72 5f 61 6c 6c 5f 77 |d recent|er_all_w|
|000036e0| 69 6e 28 76 6f 69 64 29 | 3b 0a 20 20 0a 20 20 65 |in(void)|;. . e|
|000036f0| 78 74 65 72 6e 20 63 68 | 61 72 20 2a 62 6e 61 6d |xtern ch|ar *bnam|
|00003700| 65 5b 5d 3b 0a 20 20 65 | 78 74 65 72 6e 20 64 65 |e[];. e|xtern de|
|00003710| 66 61 75 6c 74 5f 6a 73 | 74 3b 0a 2a 2a 2a 20 73 |fault_js|t;.*** s|
|00003720| 79 73 64 65 66 2e 68 09 | 57 65 64 20 4d 61 79 20 |ysdef.h.|Wed May |
|00003730| 20 31 20 31 35 3a 33 35 | 3a 34 38 20 31 39 39 31 | 1 15:35|:48 1991|
|00003740| 0a 2d 2d 2d 20 2e 2e 2f | 6f 6c 65 6f 2f 73 79 73 |.--- ../|oleo/sys|
|00003750| 64 65 66 2e 68 09 57 65 | 64 20 4d 61 72 20 32 35 |def.h.We|d Mar 25|
|00003760| 20 30 30 3a 31 38 3a 35 | 33 20 31 39 39 32 0a 2a | 00:18:5|3 1992.*|
|00003770| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00003780| 2a 2a 20 32 32 2c 32 37 | 20 2a 2a 2a 2a 0a 2d 2d |** 22,27| ****.--|
|00003790| 2d 20 32 32 2c 33 31 20 | 2d 2d 2d 2d 0a 20 20 2f |- 22,31 |----. /|
|000037a0| 2a 20 44 65 63 6c 61 72 | 61 74 69 6f 6e 73 20 66 |* Declar|ations f|
|000037b0| 6f 72 20 73 79 73 74 65 | 6d 20 66 75 6e 63 74 69 |or syste|m functi|
|000037c0| 6f 6e 73 2c 20 65 74 63 | 0a 20 20 20 20 20 54 68 |ons, etc|. Th|
|000037d0| 65 73 65 20 73 68 6f 75 | 6c 64 6e 27 74 20 62 65 |ese shou|ldn't be|
|000037e0| 20 6e 65 65 64 65 64 2c | 20 62 75 74 20 61 72 65 | needed,| but are|
|000037f0| 20 2a 2f 0a 20 20 0a 2b | 20 23 69 66 6e 64 65 66 | */. .+| #ifndef|
|00003800| 20 43 52 41 5a 59 0a 2b | 20 65 78 74 65 72 6e 20 | CRAZY.+| extern |
|00003810| 69 6e 74 20 73 74 72 69 | 63 6d 70 20 45 58 54 32 |int stri|cmp EXT2|
|00003820| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 2c 63 6f |(const c|har *,co|
|00003830| 6e 73 74 20 63 68 61 72 | 20 2a 29 3b 0a 2b 20 65 |nst char| *);.+ e|
|00003840| 78 74 65 72 6e 20 69 6e | 74 20 73 74 72 69 6e 63 |xtern in|t strinc|
|00003850| 6d 70 20 45 58 54 33 28 | 63 6f 6e 73 74 20 63 68 |mp EXT3(|const ch|
|00003860| 61 72 20 2a 2c 63 6f 6e | 73 74 20 63 68 61 72 20 |ar *,con|st char |
|00003870| 2a 2c 73 69 7a 65 5f 74 | 29 3b 0a 2b 20 23 65 6c |*,size_t|);.+ #el|
|00003880| 73 65 0a 20 20 65 78 74 | 65 72 6e 20 69 6e 74 20 |se. ext|ern int |
|00003890| 65 72 72 6e 6f 3b 0a 20 | 20 0a 20 20 65 78 74 65 |errno;. | . exte|
|000038a0| 72 6e 20 76 6f 69 64 20 | 65 78 69 74 20 45 58 54 |rn void |exit EXT|
|000038b0| 31 28 69 6e 74 29 3b 0a | 2a 2a 2a 2a 2a 2a 2a 2a |1(int);.|********|
|000038c0| 2a 2a 2a 2a 2a 2a 2a 0a | 2a 2a 2a 20 31 31 32 2c |*******.|*** 112,|
|000038d0| 31 31 37 20 2a 2a 2a 2a | 0a 2d 2d 2d 20 31 31 36 |117 ****|.--- 116|
|000038e0| 2c 31 32 33 20 2d 2d 2d | 2d 0a 20 20 65 78 74 65 |,123 ---|-. exte|
|000038f0| 72 6e 20 76 6f 69 64 20 | 73 65 74 62 75 66 66 65 |rn void |setbuffe|
|00003900| 72 20 45 58 54 33 28 46 | 49 4c 45 20 2a 2c 63 68 |r EXT3(F|ILE *,ch|
|00003910| 61 72 20 2a 2c 73 69 7a | 65 5f 74 29 3b 0a 20 20 |ar *,siz|e_t);. |
|00003920| 23 65 6e 64 69 66 0a 20 | 20 65 78 74 65 72 6e 20 |#endif. | extern |
|00003930| 69 6e 74 20 61 63 63 65 | 73 73 20 45 58 54 32 28 |int acce|ss EXT2(|
|00003940| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 2c 20 69 6e |const ch|ar *, in|
|00003950| 74 29 3b 0a 2b 20 23 65 | 6e 64 69 66 0a 2b 20 0a |t);.+ #e|ndif.+ .|
|00003960| 20 20 23 65 6e 64 69 66 | 0a 20 20 0a 20 20 23 69 | #endif|. . #i|
|00003970| 66 20 64 65 66 69 6e 65 | 64 28 5f 5f 53 54 44 43 |f define|d(__STDC|
|00003980| 5f 5f 29 20 26 26 20 64 | 65 66 69 6e 65 64 28 6f |__) && d|efined(o|
|00003990| 62 73 74 61 63 6b 5f 63 | 68 75 6e 6b 5f 61 6c 6c |bstack_c|hunk_all|
|000039a0| 6f 63 29 0a 2a 2a 2a 20 | 75 74 69 6c 73 2e 63 09 |oc).*** |utils.c.|
|000039b0| 54 68 75 20 4d 61 79 20 | 20 32 20 31 34 3a 32 31 |Thu May | 2 14:21|
|000039c0| 3a 33 33 20 31 39 39 31 | 0a 2d 2d 2d 20 2e 2e 2f |:33 1991|.--- ../|
|000039d0| 6f 6c 65 6f 2f 75 74 69 | 6c 73 2e 63 09 57 65 64 |oleo/uti|ls.c.Wed|
|000039e0| 20 4d 61 72 20 32 35 20 | 30 34 3a 35 32 3a 34 38 | Mar 25 |04:52:48|
|000039f0| 20 31 39 39 32 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | 1992.**|********|
|00003a00| 2a 2a 2a 2a 2a 0a 2a 2a | 2a 20 31 36 2c 32 31 20 |*****.**|* 16,21 |
|00003a10| 2a 2a 2a 2a 0a 2d 2d 2d | 20 31 36 2c 32 34 20 2d |****.---| 16,24 -|
|00003a20| 2d 2d 2d 0a 20 20 61 6c | 6f 6e 67 20 77 69 74 68 |---. al|ong with|
|00003a30| 20 4f 6c 65 6f 3b 20 73 | 65 65 20 74 68 65 20 66 | Oleo; s|ee the f|
|00003a40| 69 6c 65 20 43 4f 50 59 | 49 4e 47 2e 20 20 49 66 |ile COPY|ING. If|
|00003a50| 20 6e 6f 74 2c 20 77 72 | 69 74 65 20 74 6f 0a 20 | not, wr|ite to. |
|00003a60| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00003a70| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 2c 20 36 |re Found|ation, 6|
|00003a80| 37 35 20 4d 61 73 73 20 | 41 76 65 2c 20 43 61 6d |75 Mass |Ave, Cam|
|00003a90| 62 72 69 64 67 65 2c 20 | 4d 41 20 30 32 31 33 39 |bridge, |MA 02139|
|00003aa0| 2c 20 55 53 41 2e 20 20 | 2a 2f 0a 20 20 23 69 6e |, USA. |*/. #in|
|00003ab0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0a |clude <s|tdio.h>.|
|00003ac0| 2b 20 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c |+ #inclu|de <stdl|
|00003ad0| 69 62 2e 68 3e 0a 2b 20 | 23 69 6e 63 6c 75 64 65 |ib.h>.+ |#include|
|00003ae0| 20 3c 73 74 72 69 6e 67 | 2e 68 3e 0a 2b 20 23 69 | <string|.h>.+ #i|
|00003af0| 6e 63 6c 75 64 65 20 3c | 75 6e 69 73 74 64 2e 68 |nclude <|unistd.h|
|00003b00| 3e 0a 20 20 0a 20 20 23 | 69 6e 63 6c 75 64 65 20 |>. . #|include |
|00003b10| 22 66 75 6e 63 64 65 66 | 2e 68 22 0a 20 20 23 69 |"funcdef|.h". #i|
|00003b20| 6e 63 6c 75 64 65 20 22 | 73 79 73 64 65 66 2e 68 |nclude "|sysdef.h|
|00003b30| 22 0a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |".******|********|
|00003b40| 2a 0a 2a 2a 2a 20 35 38 | 2c 36 35 20 2a 2a 2a 2a |*.*** 58|,65 ****|
|00003b50| 0a 20 20 23 64 65 66 69 | 6e 65 20 5f 49 4f 53 54 |. #defi|ne _IOST|
|00003b60| 52 47 20 30 0a 20 20 23 | 65 6e 64 69 66 0a 20 20 |RG 0. #|endif. |
|00003b70| 0a 2d 20 65 78 74 65 72 | 6e 20 56 4f 49 44 53 54 |.- exter|n VOIDST|
|00003b80| 41 52 20 6d 61 6c 6c 6f | 63 28 29 3b 0a 2d 20 0a |AR mallo|c();.- .|
|00003b90| 20 20 56 4f 49 44 53 54 | 41 52 20 63 6b 5f 6d 61 | VOIDST|AR ck_ma|
|00003ba0| 6c 6c 6f 63 20 45 58 54 | 31 28 73 69 7a 65 5f 74 |lloc EXT|1(size_t|
|00003bb0| 29 3b 0a 20 20 56 4f 49 | 44 53 54 41 52 20 63 6b |);. VOI|DSTAR ck|
|00003bc0| 5f 72 65 61 6c 6c 6f 63 | 20 45 58 54 32 28 56 4f |_realloc| EXT2(VO|
|00003bd0| 49 44 53 54 41 52 2c 73 | 69 7a 65 5f 74 29 3b 0a |IDSTAR,s|ize_t);.|
|00003be0| 20 20 63 68 61 72 20 2a | 73 74 72 64 75 70 20 45 | char *|strdup E|
|00003bf0| 58 54 31 28 43 4f 4e 53 | 54 20 63 68 61 72 20 2a |XT1(CONS|T char *|
|00003c00| 29 3b 0a 2d 2d 2d 20 36 | 31 2c 36 36 20 2d 2d 2d |);.--- 6|1,66 ---|
|00003c10| 2d 0a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |-.******|********|
|00003c20| 2a 0a 2a 2a 2a 20 33 33 | 30 2c 33 33 39 20 2a 2a |*.*** 33|0,339 **|
|00003c30| 2a 2a 0a 20 20 56 4f 49 | 44 53 54 41 52 0a 20 20 |**. VOI|DSTAR. |
|00003c40| 63 6b 5f 6d 61 6c 6c 6f | 63 20 46 55 4e 31 28 73 |ck_mallo|c FUN1(s|
|00003c50| 69 7a 65 5f 74 2c 20 73 | 69 7a 65 29 0a 20 20 7b |ize_t, s|ize). {|
|00003c60| 0a 21 20 09 56 4f 49 44 | 53 54 41 52 20 72 65 74 |.! .VOID|STAR ret|
|00003c70| 3b 0a 20 20 0a 21 20 09 | 72 65 74 3d 6d 61 6c 6c |;. .! .|ret=mall|
|00003c80| 6f 63 28 73 69 7a 65 29 | 3b 0a 21 20 09 69 66 28 |oc(size)|;.! .if(|
|00003c90| 72 65 74 3d 3d 28 56 4f | 49 44 53 54 41 52 29 30 |ret==(VO|IDSTAR)0|
|00003ca0| 29 0a 20 20 09 09 70 61 | 6e 69 63 28 22 43 6f 75 |). ..pa|nic("Cou|
|00003cb0| 6c 64 6e 27 74 20 61 6c | 6c 6f 63 61 74 65 20 25 |ldn't al|locate %|
|00003cc0| 75 20 62 79 74 65 73 22 | 2c 73 69 7a 65 29 3b 0a |u bytes"|,size);.|
|00003cd0| 20 20 09 72 65 74 75 72 | 6e 20 72 65 74 3b 0a 20 | .retur|n ret;. |
|00003ce0| 20 7d 0a 2d 2d 2d 20 33 | 33 31 2c 33 34 32 20 2d | }.--- 3|31,342 -|
|00003cf0| 2d 2d 2d 0a 20 20 56 4f | 49 44 53 54 41 52 0a 20 |---. VO|IDSTAR. |
|00003d00| 20 63 6b 5f 6d 61 6c 6c | 6f 63 20 46 55 4e 31 28 | ck_mall|oc FUN1(|
|00003d10| 73 69 7a 65 5f 74 2c 20 | 73 69 7a 65 29 0a 20 20 |size_t, |size). |
|00003d20| 7b 0a 21 20 09 63 68 61 | 72 20 2a 20 72 65 74 3b |{.! .cha|r * ret;|
|00003d30| 0a 20 20 0a 21 20 09 69 | 66 20 28 73 69 7a 65 20 |. .! .i|f (size |
|00003d40| 3c 3d 20 30 29 0a 21 20 | 09 09 70 61 6e 69 63 28 |<= 0).! |..panic(|
|00003d50| 22 62 61 64 20 73 69 7a | 65 20 70 61 73 73 65 64 |"bad siz|e passed|
|00003d60| 20 74 6f 20 63 6b 5f 6d | 61 6c 6c 6f 63 22 2c 20 | to ck_m|alloc", |
|00003d70| 73 69 7a 65 29 3b 0a 21 | 20 09 72 65 74 3d 28 63 |size);.!| .ret=(c|
|00003d80| 68 61 72 20 2a 29 6d 61 | 6c 6c 6f 63 28 73 69 7a |har *)ma|lloc(siz|
|00003d90| 65 29 3b 0a 21 20 09 69 | 66 28 72 65 74 3d 3d 28 |e);.! .i|f(ret==(|
|00003da0| 63 68 61 72 20 2a 29 30 | 29 0a 20 20 09 09 70 61 |char *)0|). ..pa|
|00003db0| 6e 69 63 28 22 43 6f 75 | 6c 64 6e 27 74 20 61 6c |nic("Cou|ldn't al|
|00003dc0| 6c 6f 63 61 74 65 20 25 | 75 20 62 79 74 65 73 22 |locate %|u bytes"|
|00003dd0| 2c 73 69 7a 65 29 3b 0a | 20 20 09 72 65 74 75 72 |,size);.| .retur|
|00003de0| 6e 20 72 65 74 3b 0a 20 | 20 7d 0a 2a 2a 2a 2a 2a |n ret;. | }.*****|
|00003df0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 2a 2a 2a 20 33 |********|**.*** 3|
|00003e00| 34 35 2c 33 35 30 20 2a | 2a 2a 2a 0a 2d 2d 2d 20 |45,350 *|***.--- |
|00003e10| 33 34 38 2c 33 35 35 20 | 2d 2d 2d 2d 0a 20 20 09 |348,355 |----. .|
|00003e20| 56 4f 49 44 53 54 41 52 | 20 72 65 74 3b 0a 20 20 |VOIDSTAR| ret;. |
|00003e30| 09 56 4f 49 44 53 54 41 | 52 20 72 65 61 6c 6c 6f |.VOIDSTA|R reallo|
|00003e40| 63 20 45 58 54 32 28 56 | 4f 49 44 53 54 41 52 2c |c EXT2(V|OIDSTAR,|
|00003e50| 73 69 7a 65 5f 74 29 3b | 0a 20 20 0a 2b 20 09 69 |size_t);|. .+ .i|
|00003e60| 66 20 28 73 69 7a 65 20 | 3c 3d 20 30 29 0a 2b 20 |f (size |<= 0).+ |
|00003e70| 09 09 70 61 6e 69 63 28 | 22 62 61 64 20 73 69 7a |..panic(|"bad siz|
|00003e80| 65 20 70 61 73 73 65 64 | 20 74 6f 20 63 6b 5f 72 |e passed| to ck_r|
|00003e90| 65 61 6c 6c 6f 63 22 2c | 20 73 69 7a 65 29 3b 0a |ealloc",| size);.|
|00003ea0| 20 20 09 72 65 74 3d 72 | 65 61 6c 6c 6f 63 28 70 | .ret=r|ealloc(p|
|00003eb0| 74 72 2c 73 69 7a 65 29 | 3b 0a 20 20 09 69 66 28 |tr,size)|;. .if(|
|00003ec0| 72 65 74 3d 3d 28 56 4f | 49 44 53 54 41 52 29 30 |ret==(VO|IDSTAR)0|
|00003ed0| 29 0a 20 20 09 09 70 61 | 6e 69 63 28 22 43 6f 75 |). ..pa|nic("Cou|
|00003ee0| 6c 64 6e 27 74 20 72 65 | 2d 61 6c 6c 6f 63 61 74 |ldn't re|-allocat|
|00003ef0| 65 20 25 75 20 62 79 74 | 65 73 20 66 72 6f 6d 20 |e %u byt|es from |
|00003f00| 25 70 22 2c 73 69 7a 65 | 2c 70 74 72 29 3b 0a 2a |%p",size|,ptr);.*|
|00003f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 2a |********|******.*|
|00003f20| 2a 2a 20 35 39 33 2c 35 | 39 38 20 2a 2a 2a 2a 0a |** 593,5|98 ****.|
|00003f30| 2d 2d 2d 20 35 39 38 2c | 36 30 34 20 2d 2d 2d 2d |--- 598,|604 ----|
|00003f40| 0a 20 20 09 09 72 65 74 | 75 72 6e 20 63 68 72 31 |. ..ret|urn chr1|
|00003f50| 20 2d 20 63 68 72 32 3b | 0a 20 20 7d 0a 20 20 0a | - chr2;|. }. .|
|00003f60| 2b 20 23 69 66 6e 64 65 | 66 20 6c 69 6e 75 78 20 |+ #ifnde|f linux |
|00003f70| 0a 20 20 43 4f 4e 53 54 | 20 63 68 61 72 20 2a 0a |. CONST| char *.|
|00003f80| 20 20 73 74 72 73 74 72 | 20 46 55 4e 32 28 43 4f | strstr| FUN2(CO|
|00003f90| 4e 53 54 20 63 68 61 72 | 20 2a 2c 73 2c 20 43 4f |NST char| *,s, CO|
|00003fa0| 4e 53 54 20 63 68 61 72 | 20 2a 2c 77 61 6e 74 65 |NST char| *,wante|
|00003fb0| 64 29 0a 20 20 7b 0a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |d). {.*|********|
|00003fc0| 2a 2a 2a 2a 2a 2a 0a 2a | 2a 2a 20 36 31 32 2c 36 |******.*|** 612,6|
|00003fd0| 31 37 20 2a 2a 2a 2a 0a | 2d 2d 2d 20 36 31 38 2c |17 ****.|--- 618,|
|00003fe0| 36 32 34 20 2d 2d 2d 2d | 0a 20 20 09 09 09 72 65 |624 ----|. ...re|
|00003ff0| 74 75 72 6e 20 28 63 68 | 61 72 20 2a 29 30 3b 0a |turn (ch|ar *)0;.|
|00004000| 20 20 09 72 65 74 75 72 | 6e 20 73 63 61 6e 3b 0a | .retur|n scan;.|
|00004010| 20 20 7d 0a 2b 20 23 65 | 6e 64 69 66 0a 20 20 0a | }.+ #e|ndif. .|
|00004020| 20 20 65 78 74 65 72 6e | 20 69 6e 74 20 73 79 73 | extern| int sys|
|00004030| 5f 6e 65 72 72 3b 0a 20 | 20 65 78 74 65 72 6e 20 |_nerr;. | extern |
|00004040| 63 68 61 72 20 2a 73 79 | 73 5f 65 72 72 6c 69 73 |char *sy|s_errlis|
|00004050| 74 5b 5d 3b 0a 00 00 00 | 00 00 00 00 00 00 00 00 |t[];....|........|
|00004060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 6f 6c 65 6f 2f 52 45 41 | 44 4d 45 2e 31 53 54 00 |oleo/REA|DME.1ST.|
|00004210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00004270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00004280| 20 20 20 33 37 32 34 20 | 20 35 31 36 34 30 36 34 | 3724 | 5164064|
|00004290| 32 35 31 20 20 31 31 33 | 31 31 00 20 30 00 00 00 |251 113|11. 0...|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 48 65 72 65 20 69 73 20 | 6d 79 20 70 6f 72 74 20 |Here is |my port |
|00004410| 6f 66 20 4f 6c 65 6f 20 | 74 6f 20 4c 69 6e 75 78 |of Oleo |to Linux|
|00004420| 2e 20 20 20 4f 6c 65 6f | 20 69 73 20 61 20 73 70 |. Oleo| is a sp|
|00004430| 72 65 61 64 73 68 65 65 | 74 20 74 68 61 74 20 69 |readshee|t that i|
|00004440| 73 0a 6e 6f 74 20 74 6f | 6f 20 61 6c 69 6b 65 20 |s.not to|o alike |
|00004450| 6f 72 20 74 6f 6f 20 64 | 69 66 66 65 72 65 6e 74 |or too d|ifferent|
|00004460| 20 66 72 6f 6d 20 4c 6f | 74 75 73 20 31 32 33 2e | from Lo|tus 123.|
|00004470| 20 20 49 74 20 73 65 65 | 6d 73 20 74 6f 20 6d 65 | It see|ms to me|
|00004480| 20 74 6f 0a 68 61 76 65 | 20 73 6f 6d 65 20 6f 66 | to.have| some of|
|00004490| 20 74 68 65 20 66 6c 61 | 76 6f 72 20 6f 66 20 65 | the fla|vor of e|
|000044a0| 6d 61 63 73 2e 20 20 52 | 65 61 64 20 74 68 65 20 |macs. R|ead the |
|000044b0| 48 4f 57 2d 54 4f 2d 55 | 53 45 20 66 69 6c 65 2c |HOW-TO-U|SE file,|
|000044c0| 20 69 74 0a 69 73 20 61 | 73 20 63 6c 6f 73 65 20 | it.is a|s close |
|000044d0| 74 6f 20 61 20 6d 61 6e | 75 61 6c 20 61 73 20 74 |to a man|ual as t|
|000044e0| 68 65 72 65 20 69 73 2e | 0a 0a 4d 79 20 67 6f 61 |here is.|..My goa|
|000044f0| 6c 20 77 61 73 20 74 6f | 20 67 65 74 20 69 74 20 |l was to| get it |
|00004500| 74 6f 20 77 6f 72 6b 20 | 61 73 20 65 61 73 69 6c |to work |as easil|
|00004510| 79 20 61 73 20 70 6f 73 | 73 69 62 6c 65 2e 20 20 |y as pos|sible. |
|00004520| 69 65 2e 20 6e 6f 20 63 | 6f 6e 66 69 67 75 72 61 |ie. no c|onfigura|
|00004530| 74 69 6f 6e 2e 0a 54 68 | 75 73 2c 20 49 20 6d 6f |tion..Th|us, I mo|
|00004540| 64 69 66 69 65 64 20 74 | 68 65 20 64 65 66 61 75 |dified t|he defau|
|00004550| 6c 74 20 73 70 72 65 61 | 64 73 68 65 65 74 20 73 |lt sprea|dsheet s|
|00004560| 74 6f 72 65 20 74 6f 20 | 62 65 20 22 73 63 22 2c |tore to |be "sc",|
|00004570| 20 69 6e 73 74 65 61 64 | 20 6f 66 0a 70 61 6e 69 | instead| of.pani|
|00004580| 63 20 77 68 69 63 68 20 | 74 72 69 65 73 20 74 6f |c which |tries to|
|00004590| 20 64 75 6d 70 20 74 68 | 65 20 64 61 74 61 20 73 | dump th|e data s|
|000045a0| 65 67 6d 65 6e 74 20 74 | 6f 20 64 69 73 6b 2e 20 |egment t|o disk. |
|000045b0| 20 49 20 61 6c 73 6f 20 | 65 6c 69 6d 69 6e 61 74 | I also |eliminat|
|000045c0| 65 64 20 74 68 65 20 0a | 47 4e 55 20 63 6f 70 79 |ed the .|GNU copy|
|000045d0| 77 72 69 74 65 20 61 6e | 64 20 35 20 73 65 63 20 |write an|d 5 sec |
|000045e0| 70 61 75 73 65 2c 20 75 | 6e 6c 65 73 73 20 79 6f |pause, u|nless yo|
|000045f0| 75 20 64 65 66 69 6e 65 | 20 22 4f 4c 45 4f 22 20 |u define| "OLEO" |
|00004600| 69 6e 20 79 6f 75 72 20 | 65 6e 76 69 72 6f 6e 6d |in your |environm|
|00004610| 65 6e 74 2e 0a 0a 59 6f | 75 20 73 68 6f 75 6c 64 |ent...Yo|u should|
|00004620| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 75 73 65 20 | be able| to use |
|00004630| 4f 6c 65 6f 20 77 69 74 | 68 20 6e 6f 20 74 72 6f |Oleo wit|h no tro|
|00004640| 75 62 6c 65 2e 20 20 48 | 6f 77 65 76 65 72 2c 20 |uble. H|owever, |
|00004650| 49 20 61 6d 20 4e 4f 54 | 2c 20 49 20 72 65 70 65 |I am NOT|, I repe|
|00004660| 61 74 0a 2a 4e 4f 54 2a | 20 61 20 73 70 72 65 61 |at.*NOT*| a sprea|
|00004670| 64 73 68 65 65 74 20 67 | 75 72 75 2e 20 20 49 6e |dsheet g|uru. In|
|00004680| 20 66 61 63 74 2c 20 49 | 20 62 61 72 65 6c 79 20 | fact, I| barely |
|00004690| 6b 6e 6f 77 20 68 6f 77 | 20 74 6f 20 75 73 65 20 |know how| to use |
|000046a0| 6f 6e 65 2e 20 20 49 66 | 20 79 6f 75 20 0a 68 61 |one. If| you .ha|
|000046b0| 76 65 20 70 72 6f 62 6c | 65 6d 73 2c 20 61 6e 64 |ve probl|ems, and|
|000046c0| 20 79 6f 75 20 63 61 6e | 27 74 20 66 69 78 20 74 | you can|'t fix t|
|000046d0| 68 65 6d 20 79 6f 75 72 | 73 65 6c 66 2c 20 79 6f |hem your|self, yo|
|000046e0| 75 20 61 72 65 20 6f 75 | 74 20 6f 66 20 6c 75 63 |u are ou|t of luc|
|000046f0| 6b 2e 20 20 43 64 69 66 | 73 20 0a 61 67 61 69 6e |k. Cdif|s .again|
|00004700| 73 74 20 6f 6c 65 6f 2d | 30 2e 30 33 2e 32 20 61 |st oleo-|0.03.2 a|
|00004710| 72 65 20 70 72 6f 76 69 | 64 65 64 2e 20 20 54 68 |re provi|ded. Th|
|00004720| 65 20 73 6f 75 72 63 65 | 20 69 73 20 69 6e 20 0a |e source| is in .|
|00004730| 0a 09 70 72 65 70 2e 61 | 69 2e 6d 69 74 2e 65 64 |..prep.a|i.mit.ed|
|00004740| 75 3a 70 75 62 2f 67 6e | 75 2f 6f 6c 65 6f 2d 30 |u:pub/gn|u/oleo-0|
|00004750| 2e 30 33 2e 32 2e 74 61 | 72 2e 5a 0a 0a 54 68 65 |.03.2.ta|r.Z..The|
|00004760| 72 65 20 73 74 69 6c 6c | 20 73 65 65 6d 73 20 74 |re still| seems t|
|00004770| 6f 20 62 65 20 61 20 73 | 6d 61 6c 6c 20 70 72 6f |o be a s|mall pro|
|00004780| 62 6c 65 6d 20 77 68 65 | 6e 20 65 6e 74 65 72 69 |blem whe|n enteri|
|00004790| 6e 67 20 64 61 74 61 20 | 69 6e 74 6f 20 61 20 63 |ng data |into a c|
|000047a0| 65 6c 6c 2e 0a 56 65 72 | 79 20 6d 69 6e 6f 72 2c |ell..Ver|y minor,|
|000047b0| 20 62 75 74 20 69 74 20 | 61 6c 77 61 79 73 20 72 | but it |always r|
|000047c0| 65 74 75 72 6e 73 20 61 | 6e 20 65 78 74 72 61 20 |eturns a|n extra |
|000047d0| 63 61 72 72 69 61 67 65 | 20 72 65 74 75 72 6e 20 |carriage| return |
|000047e0| 61 6e 64 20 74 68 65 72 | 65 66 6f 72 65 0a 72 65 |and ther|efore.re|
|000047f0| 70 6f 72 74 73 20 22 74 | 68 61 74 20 6b 65 79 20 |ports "t|hat key |
|00004800| 69 73 20 75 6e 62 6f 75 | 6e 64 22 2e 20 20 49 20 |is unbou|nd". I |
|00004810| 74 68 69 6e 6b 20 69 74 | 20 69 73 20 61 20 63 6f |think it| is a co|
|00004820| 6e 73 6f 6c 65 20 74 74 | 79 20 70 72 6f 62 6c 65 |nsole tt|y proble|
|00004830| 6d 2e 0a 0a 54 68 61 74 | 20 73 61 69 64 2c 20 6e |m...That| said, n|
|00004840| 6f 74 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ote the |followin|
|00004850| 67 3a 0a 0a 0a 50 6f 69 | 6e 74 20 23 31 3a 20 20 |g:...Poi|nt #1: |
|00004860| 59 65 73 2c 20 61 73 20 | 6d 65 6e 74 69 6f 6e 65 |Yes, as |mentione|
|00004870| 64 20 69 6e 20 48 4f 57 | 2d 54 4f 2d 55 53 45 2c |d in HOW|-TO-USE,|
|00004880| 20 4f 6c 65 6f 20 69 73 | 20 63 6f 6d 70 69 6c 65 | Oleo is| compile|
|00004890| 64 20 77 69 74 68 20 2d | 44 41 30 5f 52 45 46 53 |d with -|DA0_REFS|
|000048a0| 2e 20 20 0a 09 20 20 20 | 54 68 69 73 20 6a 75 73 |. .. |This jus|
|000048b0| 74 20 6d 65 61 6e 73 20 | 74 68 61 74 20 69 74 20 |t means |that it |
|000048c0| 75 73 65 73 20 31 32 33 | 20 73 74 79 6c 65 20 63 |uses 123| style c|
|000048d0| 65 6c 6c 20 6e 61 6d 65 | 73 20 6c 69 6b 65 20 41 |ell name|s like A|
|000048e0| 31 2c 20 43 33 2e 0a 0a | 50 6f 69 6e 74 20 23 32 |1, C3...|Point #2|
|000048f0| 3a 20 20 49 20 63 6f 6d | 70 69 6c 65 64 20 77 69 |: I com|piled wi|
|00004900| 74 68 20 31 36 20 62 69 | 74 20 63 65 6c 6c 20 70 |th 16 bi|t cell p|
|00004910| 6f 69 6e 74 65 72 73 20 | 62 65 63 61 75 73 65 20 |ointers |because |
|00004920| 49 20 63 6f 75 6c 64 6e | 27 74 20 67 65 74 0a 09 |I couldn|'t get..|
|00004930| 20 20 20 38 20 62 69 74 | 20 6f 6e 65 73 20 74 6f | 8 bit| ones to|
|00004940| 20 77 6f 72 6b 20 3a 29 | 20 20 54 68 69 73 20 6d | work :)| This m|
|00004950| 65 61 6e 73 20 74 68 65 | 72 65 20 61 72 65 20 36 |eans the|re are 6|
|00004960| 34 4b 20 65 61 63 68 20 | 63 6f 6c 75 6d 6e 73 0a |4K each |columns.|
|00004970| 09 20 20 20 61 6e 64 20 | 72 6f 77 73 2e 20 20 4c |. and |rows. L|
|00004980| 6f 74 73 20 6f 66 20 72 | 6f 6f 6d 20 74 6f 20 77 |ots of r|oom to w|
|00004990| 6f 72 6b 2e 0a 0a 50 6f | 69 6e 74 20 23 33 3a 20 |ork...Po|int #3: |
|000049a0| 20 49 20 6d 6f 64 69 66 | 69 65 64 20 74 68 65 20 | I modif|ied the |
|000049b0| 64 65 66 61 75 6c 74 20 | 66 69 6c 65 20 73 61 76 |default |file sav|
|000049c0| 65 20 6d 6f 64 65 20 74 | 6f 20 62 65 20 22 73 63 |e mode t|o be "sc|
|000049d0| 22 20 28 73 75 70 65 72 | 63 61 6c 63 3f 29 2e 0a |" (super|calc?)..|
|000049e0| 0a 50 6f 69 6e 74 20 23 | 34 3a 20 20 4f 6c 65 6f |.Point #|4: Oleo|
|000049f0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 77 69 | was com|piled wi|
|00004a00| 74 68 20 67 63 63 20 32 | 2e 31 2c 20 62 75 74 20 |th gcc 2|.1, but |
|00004a10| 77 69 74 68 20 6e 6f 20 | 73 68 61 72 65 64 20 6c |with no |shared l|
|00004a20| 69 62 72 61 72 69 65 73 | 2e 0a 09 20 20 20 53 68 |ibraries|... Sh|
|00004a30| 61 72 65 64 20 6c 69 62 | 73 20 77 6f 75 6c 64 20 |ared lib|s would |
|00004a40| 73 61 76 65 20 61 62 6f | 75 74 20 61 6e 6f 74 68 |save abo|ut anoth|
|00004a50| 65 72 20 36 30 4b 2e 20 | 20 42 75 74 20 79 6f 75 |er 60K. | But you|
|00004a60| 20 4d 41 59 20 6e 65 65 | 64 0a 09 20 20 20 74 6f | MAY nee|d.. to|
|00004a70| 20 68 61 76 65 20 4c 69 | 6e 75 73 27 73 20 2e 30 | have Li|nus's .0|
|00004a80| 39 35 61 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |95a floa|ting poi|
|00004a90| 6e 74 20 70 61 74 63 68 | 65 73 20 28 61 72 6f 75 |nt patch|es (arou|
|00004aa0| 6e 64 20 4d 61 72 63 68 | 20 32 38 74 68 29 2e 0a |nd March| 28th)..|
|00004ab0| 0a 50 6f 69 6e 74 20 23 | 35 3a 20 20 43 75 72 72 |.Point #|5: Curr|
|00004ac0| 65 6e 74 6c 79 20 4f 6c | 65 6f 20 75 73 65 73 20 |ently Ol|eo uses |
|00004ad0| 6e 6f 64 65 6c 61 79 28 | 29 2c 20 77 68 69 63 68 |nodelay(|), which|
|00004ae0| 20 4c 69 6e 75 78 20 64 | 6f 65 73 6e 27 74 20 68 | Linux d|oesn't h|
|00004af0| 61 76 65 2e 20 20 41 6c | 73 6f 0a 09 20 20 20 62 |ave. Al|so.. b|
|00004b00| 63 6f 70 79 28 29 2c 20 | 62 63 6d 70 2c 20 65 74 |copy(), |bcmp, et|
|00004b10| 63 2e 20 20 49 20 63 6f | 62 62 6c 65 64 20 74 6f |c. I co|bbled to|
|00004b20| 67 65 74 68 65 72 20 74 | 68 65 73 65 20 61 6e 64 |gether t|hese and|
|00004b30| 20 70 75 74 20 74 68 65 | 6d 0a 09 20 20 20 69 6e | put the|m.. in|
|00004b40| 20 6c 69 6e 75 78 2e 63 | 2e 20 20 4e 6f 64 65 6c | linux.c|. Nodel|
|00004b50| 61 79 28 29 20 73 68 6f | 75 6c 64 20 70 72 6f 62 |ay() sho|uld prob|
|00004b60| 61 62 6c 79 20 62 65 20 | 6d 6f 64 69 66 69 65 64 |ably be |modified|
|00004b70| 20 74 6f 20 75 73 65 20 | 0a 09 20 20 20 73 65 6c | to use |.. sel|
|00004b80| 65 63 74 28 29 20 61 6e | 79 77 61 79 73 2c 20 74 |ect() an|yways, t|
|00004b90| 6f 20 72 65 64 75 63 65 | 20 6f 76 65 72 68 65 61 |o reduce| overhea|
|00004ba0| 64 3f 0a 0a 0a 0a 0a 50 | 65 74 65 72 20 4d 61 63 |d?.....P|eter Mac|
|00004bb0| 44 6f 6e 61 6c 64 2e 0a | 70 6d 61 63 64 6f 6e 61 |Donald..|pmacdona|
|00004bc0| 40 74 61 64 70 6f 6c 65 | 2e 67 6f 76 2e 62 63 2e |@tadpole|.gov.bc.|
|00004bd0| 63 61 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |ca......|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 6f 6c 65 6f 2f 6c 69 6e | 75 78 2e 63 00 00 00 00 |oleo/lin|ux.c....|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00004c70| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00004c80| 20 20 20 31 31 36 32 20 | 20 35 31 36 34 30 36 32 | 1162 | 5164062|
|00004c90| 33 34 34 20 20 31 31 33 | 32 31 00 20 30 00 00 00 |344 113|21. 0...|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 64 65 66 |#include| <stddef|
|00004e10| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00004e20| 72 69 6e 67 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ring.h>.|#include|
|00004e30| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0a 23 69 6e 63 | <stdlib|.h>.#inc|
|00004e40| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|00004e50| 69 6e 63 6c 75 64 65 20 | 3c 74 65 72 6d 69 6f 73 |include |<termios|
|00004e60| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 63 75 |.h>.#inc|lude <cu|
|00004e70| 72 73 65 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |rses.h>.|#include|
|00004e80| 20 3c 66 63 6e 74 6c 2e | 68 3e 0a 0a 0a 69 6e 74 | <fcntl.|h>...int|
|00004e90| 0a 62 63 6d 70 28 63 6f | 6e 73 74 20 76 6f 69 64 |.bcmp(co|nst void|
|00004ea0| 2a 20 73 31 2c 20 63 6f | 6e 73 74 20 76 6f 69 64 |* s1, co|nst void|
|00004eb0| 2a 20 73 32 2c 20 73 69 | 7a 65 5f 74 20 6c 65 6e |* s2, si|ze_t len|
|00004ec0| 29 0a 7b 72 65 74 75 72 | 6e 20 28 6c 65 6e 20 3e |).{retur|n (len >|
|00004ed0| 20 30 20 3f 20 6d 65 6d | 63 6d 70 28 73 31 2c 20 | 0 ? mem|cmp(s1, |
|00004ee0| 73 32 2c 20 28 73 69 7a | 65 5f 74 29 20 6c 65 6e |s2, (siz|e_t) len|
|00004ef0| 29 20 3a 20 30 29 3b 7d | 0a 0a 63 68 61 72 2a 0a |) : 0);}|..char*.|
|00004f00| 69 6e 64 65 78 28 63 6f | 6e 73 74 20 63 68 61 72 |index(co|nst char|
|00004f10| 2a 20 73 2c 20 69 6e 74 | 20 63 29 0a 7b 20 72 65 |* s, int| c).{ re|
|00004f20| 74 75 72 6e 20 73 74 72 | 63 68 72 28 73 2c 20 63 |turn str|chr(s, c|
|00004f30| 29 3b 20 7d 0a 0a 63 68 | 61 72 2a 0a 72 69 6e 64 |); }..ch|ar*.rind|
|00004f40| 65 78 28 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 73 |ex(const| char* s|
|00004f50| 2c 20 69 6e 74 20 63 29 | 0a 7b 20 72 65 74 75 72 |, int c)|.{ retur|
|00004f60| 6e 20 73 74 72 72 63 68 | 72 28 73 2c 20 63 29 3b |n strrch|r(s, c);|
|00004f70| 20 7d 0a 0a 76 6f 69 64 | 0a 62 63 6f 70 79 28 63 | }..void|.bcopy(c|
|00004f80| 6f 6e 73 74 20 76 6f 69 | 64 2a 20 73 2c 20 76 6f |onst voi|d* s, vo|
|00004f90| 69 64 2a 20 64 2c 20 73 | 69 7a 65 5f 74 20 6e 29 |id* d, s|ize_t n)|
|00004fa0| 20 0a 7b 20 69 66 20 28 | 6e 20 3e 20 30 29 20 6d | .{ if (|n > 0) m|
|00004fb0| 65 6d 6d 6f 76 65 20 28 | 64 2c 20 73 2c 20 28 73 |emmove (|d, s, (s|
|00004fc0| 69 7a 65 5f 74 29 20 6e | 29 3b 20 7d 0a 0a 76 6f |ize_t) n|); }..vo|
|00004fd0| 69 64 0a 62 7a 65 72 6f | 28 76 6f 69 64 2a 20 73 |id.bzero|(void* s|
|00004fe0| 2c 20 73 69 7a 65 5f 74 | 20 6c 29 0a 7b 20 69 66 |, size_t| l).{ if|
|00004ff0| 20 28 6c 20 3e 20 30 29 | 20 6d 65 6d 73 65 74 28 | (l > 0)| memset(|
|00005000| 73 2c 20 30 2c 20 28 73 | 69 7a 65 5f 74 29 20 6c |s, 0, (s|ize_t) l|
|00005010| 29 3b 20 7d 0a 0a 0a 76 | 6f 69 64 20 6e 6f 64 65 |); }...v|oid node|
|00005020| 6c 61 79 28 57 49 4e 44 | 4f 57 20 2a 77 69 6e 2c |lay(WIND|OW *win,|
|00005030| 20 62 6f 6f 6c 20 66 6c | 61 67 29 0a 7b 0a 09 66 | bool fl|ag).{..f|
|00005040| 63 6e 74 6c 28 30 2c 46 | 5f 53 45 54 46 4c 2c 28 |cntl(0,F|_SETFL,(|
|00005050| 66 6c 61 67 3f 4f 5f 4e | 4f 4e 42 4c 4f 43 4b 3a |flag?O_N|ONBLOCK:|
|00005060| 7e 4f 5f 4e 4f 4e 42 4c | 4f 43 4b 29 29 3b 0a 7d |~O_NONBL|OCK));.}|
|00005070| 0a 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 6f 6c 65 6f 2f 48 4f 57 | 2d 54 4f 2d 55 53 45 00 |oleo/HOW|-TO-USE.|
|00005210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00005270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00005280| 20 31 30 32 35 35 37 20 | 20 35 30 31 30 30 36 35 | 102557 | 5010065|
|00005290| 32 32 32 20 20 31 31 34 | 30 36 00 20 30 00 00 00 |222 114|06. 0...|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 09 09 09 48 6f 77 20 74 | 6f 20 55 73 65 20 4f 6c |...How t|o Use Ol|
|00005410| 65 6f 0a 0a 54 68 69 73 | 20 69 73 20 61 6c 6c 20 |eo..This| is all |
|00005420| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00005430| 6e 20 74 68 65 72 65 20 | 69 73 20 61 74 20 74 68 |n there |is at th|
|00005440| 65 20 6d 6f 6d 65 6e 74 | 2e 20 20 49 20 68 6f 70 |e moment|. I hop|
|00005450| 65 20 74 68 61 74 20 74 | 68 69 73 0a 64 6f 63 75 |e that t|his.docu|
|00005460| 6d 65 6e 74 61 74 69 6f | 6e 20 69 73 20 63 6f 6d |mentatio|n is com|
|00005470| 70 6c 65 74 65 2c 20 28 | 69 66 20 6e 6f 74 20 72 |plete, (|if not r|
|00005480| 65 61 64 61 62 6c 65 29 | 2c 20 62 75 74 20 74 68 |eadable)|, but th|
|00005490| 65 72 65 20 6d 61 79 20 | 62 65 20 6f 6d 69 73 73 |ere may |be omiss|
|000054a0| 69 6f 6e 73 2e 0a 55 73 | 65 20 74 68 65 20 53 6f |ions..Us|e the So|
|000054b0| 75 72 63 65 2c 20 61 6e | 64 20 62 65 20 73 75 72 |urce, an|d be sur|
|000054c0| 65 20 74 6f 20 73 65 6e | 64 20 6d 65 20 6d 61 69 |e to sen|d me mai|
|000054d0| 6c 20 61 62 6f 75 74 20 | 61 6e 79 74 68 69 6e 67 |l about |anything|
|000054e0| 20 79 6f 75 20 66 69 6e | 64 20 75 6e 63 6c 65 61 | you fin|d unclea|
|000054f0| 72 2e 0a 0a 4f 6c 65 6f | 20 63 75 72 72 65 6e 74 |r...Oleo| current|
|00005500| 6c 79 20 72 75 6e 73 20 | 75 6e 64 65 72 20 34 2e |ly runs |under 4.|
|00005510| 33 42 53 44 2c 20 48 50 | 2d 55 58 20 37 2e 30 2c |3BSD, HP|-UX 7.0,|
|00005520| 20 61 6e 64 20 4d 53 2d | 44 4f 53 20 28 33 2e 33 | and MS-|DOS (3.3|
|00005530| 20 77 69 74 68 20 54 75 | 72 62 6f 20 43 20 32 2e | with Tu|rbo C 2.|
|00005540| 30 29 2e 0a 49 74 20 73 | 68 6f 75 6c 64 20 77 6f |0)..It s|hould wo|
|00005550| 72 6b 20 6f 6e 20 61 20 | 53 79 73 56 20 73 79 73 |rk on a |SysV sys|
|00005560| 74 65 6d 2c 20 62 75 74 | 20 6d 61 79 20 6e 65 65 |tem, but| may nee|
|00005570| 64 20 73 6f 6d 65 20 74 | 77 65 61 6b 69 6e 67 2e |d some t|weaking.|
|00005580| 20 20 28 49 20 64 6f 6e | 27 74 20 68 61 76 65 0a | (I don|'t have.|
|00005590| 65 61 73 79 20 61 63 63 | 65 73 73 20 74 6f 20 53 |easy acc|ess to S|
|000055a0| 79 73 56 20 6d 61 63 68 | 69 6e 65 73 2c 20 73 6f |ysV mach|ines, so|
|000055b0| 20 69 74 20 64 6f 65 73 | 20 6e 6f 74 20 67 65 74 | it does| not get|
|000055c0| 20 77 65 6c 6c 20 74 65 | 73 74 65 64 20 6f 6e 20 | well te|sted on |
|000055d0| 74 68 65 6d 2e 29 0a 0a | 4f 6c 65 6f 20 75 73 65 |them.)..|Oleo use|
|000055e0| 73 20 63 75 72 73 65 73 | 20 75 6e 64 65 72 20 42 |s curses| under B|
|000055f0| 53 44 20 61 6e 64 20 53 | 79 73 56 2c 20 61 6e 64 |SD and S|ysV, and|
|00005600| 20 72 65 71 75 69 72 65 | 73 20 74 68 61 74 20 73 | require|s that s|
|00005610| 74 61 6e 64 6f 75 74 20 | 6d 6f 64 65 20 62 65 0a |tandout |mode be.|
|00005620| 72 65 76 65 72 73 65 2d | 76 69 64 65 6f 2c 20 6f |reverse-|video, o|
|00005630| 72 20 73 6f 6d 65 20 6f | 74 68 65 72 20 6d 6f 64 |r some o|ther mod|
|00005640| 65 20 77 68 65 72 65 20 | 73 74 61 6e 64 6f 75 74 |e where |standout|
|00005650| 20 62 6c 61 6e 6b 73 20 | 61 72 65 20 76 69 73 75 | blanks |are visu|
|00005660| 61 6c 6c 79 0a 64 69 73 | 74 69 6e 67 75 69 73 68 |ally.dis|tinguish|
|00005670| 61 62 6c 65 20 66 72 6f | 6d 20 6e 6f 6e 2d 73 74 |able fro|m non-st|
|00005680| 61 6e 64 6f 75 74 20 62 | 6c 61 6e 6b 73 2e 20 20 |andout b|lanks. |
|00005690| 28 49 66 20 74 68 69 73 | 20 69 73 20 6e 6f 74 20 |(If this| is not |
|000056a0| 74 68 65 20 63 61 73 65 | 2c 20 79 6f 75 20 77 69 |the case|, you wi|
|000056b0| 6c 6c 0a 68 61 76 65 20 | 61 20 68 61 72 64 20 74 |ll.have |a hard t|
|000056c0| 69 6d 65 20 74 65 6c 6c | 69 6e 67 20 77 68 65 72 |ime tell|ing wher|
|000056d0| 65 20 74 68 65 20 63 65 | 6c 6c 20 63 75 72 73 6f |e the ce|ll curso|
|000056e0| 72 20 69 73 2e 29 20 20 | 28 4d 6f 64 69 66 79 69 |r is.) |(Modifyi|
|000056f0| 6e 67 20 69 74 20 74 6f | 0a 74 72 79 20 74 6f 20 |ng it to|.try to |
|00005700| 65 78 70 6c 69 63 69 74 | 6c 79 20 75 73 65 20 72 |explicit|ly use r|
|00005710| 65 76 65 72 73 65 2d 76 | 69 64 65 6f 20 6f 6e 20 |everse-v|ideo on |
|00005720| 53 79 73 56 20 6d 61 63 | 68 69 6e 65 73 20 73 68 |SysV mac|hines sh|
|00005730| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 74 6f 6f 20 |ould not| be too |
|00005740| 68 61 72 64 2e 0a 49 27 | 64 20 61 70 70 72 65 63 |hard..I'|d apprec|
|00005750| 69 61 74 65 20 69 74 20 | 69 66 20 73 6f 6d 65 6f |iate it |if someo|
|00005760| 6e 65 20 77 6f 75 6c 64 | 20 73 65 6e 64 20 6d 65 |ne would| send me|
|00005770| 20 74 68 65 20 70 61 74 | 63 68 20 74 6f 20 64 6f | the pat|ch to do|
|00005780| 20 74 68 61 74 2e 29 0a | 0a 44 65 74 61 69 6c 65 | that.).|.Detaile|
|00005790| 64 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 66 |d instru|ctions f|
|000057a0| 6f 72 20 63 6f 6d 70 69 | 6c 69 6e 67 20 61 6e 64 |or compi|ling and|
|000057b0| 20 69 6e 73 74 61 6c 6c | 69 6e 67 20 6f 6c 65 6f | install|ing oleo|
|000057c0| 20 61 72 65 20 69 6e 20 | 74 68 65 20 66 69 6c 65 | are in |the file|
|000057d0| 0a 49 4e 53 54 41 4c 4c | 2e 0a 0a 53 65 6e 64 20 |.INSTALL|...Send |
|000057e0| 62 75 67 20 72 65 70 6f | 72 74 73 2c 20 63 6f 6d |bug repo|rts, com|
|000057f0| 6d 65 6e 74 73 2c 20 70 | 61 74 63 68 65 73 2c 20 |ments, p|atches, |
|00005800| 65 74 63 20 74 6f 20 68 | 61 63 6b 40 67 6e 75 2e |etc to h|ack@gnu.|
|00005810| 61 69 2e 6d 69 74 2e 65 | 64 75 0a 0a 54 68 69 73 |ai.mit.e|du..This|
|00005820| 20 64 6f 63 75 6d 65 6e | 74 20 70 72 6f 62 61 62 | documen|t probab|
|00005830| 6c 79 20 61 73 73 75 6d | 65 73 20 79 6f 75 20 6b |ly assum|es you k|
|00005840| 6e 6f 77 20 61 20 66 61 | 69 72 20 61 6d 6f 75 6e |now a fa|ir amoun|
|00005850| 74 20 61 62 6f 75 74 20 | 68 6f 77 20 73 70 72 65 |t about |how spre|
|00005860| 61 64 73 68 65 65 74 73 | 0a 77 6f 72 6b 2e 20 20 |adsheets|.work. |
|00005870| 50 6c 65 61 73 65 20 6c | 65 74 20 6d 65 20 6b 6e |Please l|et me kn|
|00005880| 6f 77 20 77 68 69 63 68 | 20 70 61 72 74 73 20 73 |ow which| parts s|
|00005890| 68 6f 75 6c 64 20 62 65 | 20 63 6c 61 72 69 66 69 |hould be| clarifi|
|000058a0| 65 64 2c 20 61 6e 64 20 | 77 68 61 74 20 6e 65 77 |ed, and |what new|
|000058b0| 0a 73 65 63 74 69 6f 6e | 73 20 73 68 6f 75 6c 64 |.section|s should|
|000058c0| 20 62 65 20 61 64 64 65 | 64 2e 0a 0a 0a 09 09 43 | be adde|d......C|
|000058d0| 65 6c 6c 20 72 65 66 65 | 72 65 6e 63 65 73 3a 0a |ell refe|rences:.|
|000058e0| 0a 43 61 73 65 20 6f 66 | 20 63 65 6c 6c 20 61 6e |.Case of| cell an|
|000058f0| 64 20 72 61 6e 67 65 20 | 6c 65 74 74 65 72 73 20 |d range |letters |
|00005900| 69 73 20 69 67 6e 6f 72 | 65 64 2e 20 20 4c 6f 77 |is ignor|ed. Low|
|00005910| 65 72 63 61 73 65 20 6c | 65 74 74 65 72 73 20 69 |ercase l|etters i|
|00005920| 6e 20 63 65 6c 6c 20 61 | 6e 64 0a 72 61 6e 67 65 |n cell a|nd.range|
|00005930| 20 6c 65 74 74 65 72 73 | 20 61 72 65 20 73 69 6c | letters| are sil|
|00005940| 65 6e 74 6c 79 20 74 75 | 72 6e 65 64 20 69 6e 74 |ently tu|rned int|
|00005950| 6f 20 74 68 65 69 72 20 | 75 70 70 65 72 63 61 73 |o their |uppercas|
|00005960| 65 20 65 71 75 69 76 65 | 6c 65 6e 74 73 2e 0a 0a |e equive|lents...|
|00005970| 09 41 62 73 6f 6c 75 74 | 65 20 76 73 20 52 65 6c |.Absolut|e vs Rel|
|00005980| 61 74 69 76 65 20 72 65 | 66 65 72 65 6e 63 65 73 |ative re|ferences|
|00005990| 3a 0a 0a 41 20 72 65 66 | 65 72 65 6e 63 65 20 74 |:..A ref|erence t|
|000059a0| 6f 20 61 20 63 65 6c 6c | 20 6d 61 79 20 62 65 20 |o a cell| may be |
|000059b0| 65 69 74 68 65 72 20 61 | 62 73 6f 6c 75 74 65 20 |either a|bsolute |
|000059c0| 6f 72 20 72 65 6c 61 74 | 69 76 65 2e 20 20 54 68 |or relat|ive. Th|
|000059d0| 65 20 6f 6e 6c 79 0a 64 | 69 66 66 65 72 65 6e 63 |e only.d|ifferenc|
|000059e0| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 6d 20 28 |e betwee|n them (|
|000059f0| 62 65 73 69 64 65 73 20 | 68 6f 77 20 74 68 65 79 |besides |how they|
|00005a00| 20 61 72 65 20 70 72 69 | 6e 74 65 64 29 20 69 73 | are pri|nted) is|
|00005a10| 20 68 6f 77 20 74 68 65 | 79 20 61 72 65 0a 61 64 | how the|y are.ad|
|00005a20| 6a 75 73 74 65 64 20 77 | 68 65 6e 20 61 20 63 65 |justed w|hen a ce|
|00005a30| 6c 6c 20 69 73 20 6d 6f | 76 65 64 20 6f 72 20 63 |ll is mo|ved or c|
|00005a40| 6f 70 69 65 64 2e 0a 0a | 57 68 65 6e 20 61 6e 20 |opied...|When an |
|00005a50| 65 78 70 72 65 73 73 69 | 6f 6e 20 63 6f 6e 74 61 |expressi|on conta|
|00005a60| 69 6e 69 6e 67 20 61 6e | 20 61 62 73 6f 6c 75 74 |ining an| absolut|
|00005a70| 65 20 72 65 66 65 72 65 | 6e 63 65 20 69 73 20 6d |e refere|nce is m|
|00005a80| 6f 76 65 64 20 6f 72 20 | 63 6f 70 69 65 64 2c 20 |oved or |copied, |
|00005a90| 74 68 65 0a 72 65 66 65 | 72 65 6e 63 65 20 77 69 |the.refe|rence wi|
|00005aa0| 6c 6c 20 73 74 69 6c 6c | 20 70 6f 69 6e 74 20 74 |ll still| point t|
|00005ab0| 6f 20 74 68 65 20 73 61 | 6d 65 20 63 65 6c 6c 2e |o the sa|me cell.|
|00005ac0| 0a 0a 57 68 65 6e 20 61 | 6e 20 65 78 70 72 65 73 |..When a|n expres|
|00005ad0| 73 69 6f 6e 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |sion con|taining |
|00005ae0| 61 20 72 65 6c 61 74 69 | 76 65 20 72 65 66 65 72 |a relati|ve refer|
|00005af0| 65 6e 63 65 20 69 73 20 | 6d 6f 76 65 64 20 6f 72 |ence is |moved or|
|00005b00| 20 63 6f 70 69 65 64 2c | 20 74 68 65 0a 72 65 66 | copied,| the.ref|
|00005b10| 65 72 65 6e 63 65 20 69 | 73 20 63 68 61 6e 67 65 |erence i|s change|
|00005b20| 64 20 74 6f 20 70 6f 69 | 6e 74 20 74 6f 20 74 68 |d to poi|nt to th|
|00005b30| 65 20 63 65 6c 6c 20 61 | 74 20 74 68 65 20 73 61 |e cell a|t the sa|
|00005b40| 6d 65 20 6f 66 66 73 65 | 74 20 66 72 6f 6d 20 74 |me offse|t from t|
|00005b50| 68 65 0a 72 65 66 65 72 | 65 6e 63 65 27 73 20 6e |he.refer|ence's n|
|00005b60| 65 77 20 70 6f 73 69 74 | 69 6f 6e 2e 0a 0a 53 6f |ew posit|ion...So|
|00005b70| 20 69 66 20 74 68 65 20 | 65 78 70 72 65 73 73 69 | if the |expressi|
|00005b80| 6f 6e 20 27 52 5b 2b 31 | 5d 43 5b 2b 31 5d 27 20 |on 'R[+1|]C[+1]' |
|00005b90| 69 73 20 69 6e 20 63 65 | 6c 6c 20 52 38 43 39 20 |is in ce|ll R8C9 |
|00005ba0| 69 74 20 72 65 66 65 72 | 73 20 74 6f 20 63 65 6c |it refer|s to cel|
|00005bb0| 6c 20 52 39 43 31 30 2e | 0a 49 66 20 74 68 65 20 |l R9C10.|.If the |
|00005bc0| 73 61 6d 65 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |same exp|ression |
|00005bd0| 69 73 20 63 6f 70 69 65 | 64 20 69 6e 74 6f 20 63 |is copie|d into c|
|00005be0| 65 6c 6c 20 52 31 43 31 | 20 69 74 20 77 69 6c 6c |ell R1C1| it will|
|00005bf0| 20 72 65 66 65 72 20 74 | 6f 20 52 32 43 32 2e 0a | refer t|o R2C2..|
|00005c00| 0a 09 57 69 74 68 20 2d | 44 41 30 5f 52 45 46 53 |..With -|DA0_REFS|
|00005c10| 3a 0a 0a 52 65 6c 61 74 | 69 76 65 20 63 65 6c 6c |:..Relat|ive cell|
|00005c20| 20 72 65 66 65 72 65 6e | 63 65 20 68 61 76 65 20 | referen|ce have |
|00005c30| 74 68 65 20 66 6f 72 6d | 20 7b 63 6f 6c 5f 6c 65 |the form| {col_le|
|00005c40| 74 7d 7b 72 6f 77 5f 6e | 75 6d 7d 2c 20 61 73 20 |t}{row_n|um}, as |
|00005c50| 69 6e 20 41 31 20 28 74 | 68 65 0a 74 6f 70 6c 65 |in A1 (t|he.tople|
|00005c60| 66 74 20 63 65 6c 6c 20 | 69 6e 20 74 68 65 20 73 |ft cell |in the s|
|00005c70| 68 65 65 74 29 2e 0a 09 | 09 0a 41 62 73 6f 6c 75 |heet)...|..Absolu|
|00005c80| 74 65 20 6f 6e 65 73 20 | 68 61 76 65 20 74 68 65 |te ones |have the|
|00005c90| 20 66 6f 72 6d 20 24 7b | 63 6f 6c 5f 6c 65 74 7d | form ${|col_let}|
|00005ca0| 24 7b 72 6f 77 5f 6e 75 | 6d 7d 2c 20 61 73 20 69 |${row_nu|m}, as i|
|00005cb0| 6e 20 24 41 24 31 20 28 | 54 68 65 20 74 6f 70 6c |n $A$1 (|The topl|
|00005cc0| 65 66 74 0a 63 65 6c 6c | 20 69 6e 20 74 68 65 20 |eft.cell| in the |
|00005cd0| 73 68 65 65 74 29 2e 0a | 0a 4d 69 78 65 64 2d 6d |sheet)..|.Mixed-m|
|00005ce0| 6f 64 65 20 6f 6e 65 73 | 20 77 6f 72 6b 20 61 62 |ode ones| work ab|
|00005cf0| 6f 75 74 20 74 68 65 20 | 77 61 79 20 79 6f 75 27 |out the |way you'|
|00005d00| 64 20 65 78 70 65 63 74 | 2c 20 77 69 74 68 20 24 |d expect|, with $|
|00005d10| 41 31 20 68 61 76 69 6e | 67 20 61 6e 20 61 62 73 |A1 havin|g an abs|
|00005d20| 6f 6c 75 74 65 0a 63 6f | 6c 75 6d 6e 2c 20 62 75 |olute.co|lumn, bu|
|00005d30| 74 20 61 20 72 65 6c 61 | 74 69 76 65 20 72 6f 77 |t a rela|tive row|
|00005d40| 2e 20 2e 20 2e 0a 0a 52 | 61 6e 67 65 73 20 61 72 |. . ...R|anges ar|
|00005d50| 65 20 65 69 74 68 65 72 | 20 7b 63 65 6c 6c 5f 72 |e either| {cell_r|
|00005d60| 65 66 7d 3a 7b 63 65 6c | 6c 5f 72 65 66 7d 20 6f |ef}:{cel|l_ref} o|
|00005d70| 72 20 7b 63 65 6c 6c 5f | 72 65 66 7d 2e 7b 63 65 |r {cell_|ref}.{ce|
|00005d80| 6c 6c 5f 72 65 66 7d 2c | 20 77 68 65 72 65 20 74 |ll_ref},| where t|
|00005d90| 68 65 0a 63 65 6c 6c 5f | 72 65 66 73 20 64 65 73 |he.cell_|refs des|
|00005da0| 63 72 69 62 65 20 6f 70 | 70 6f 73 69 74 65 20 63 |cribe op|posite c|
|00005db0| 6f 72 6e 65 72 73 20 6f | 66 20 74 68 65 20 72 61 |orners o|f the ra|
|00005dc0| 6e 67 65 2e 20 20 53 6f | 20 41 31 3a 42 32 20 69 |nge. So| A1:B2 i|
|00005dd0| 73 20 74 68 65 20 74 6f | 70 6d 6f 73 74 2c 0a 6c |s the to|pmost,.l|
|00005de0| 65 66 74 6d 6f 73 74 20 | 66 6f 75 72 20 63 65 6c |eftmost |four cel|
|00005df0| 6c 73 20 69 6e 20 74 68 | 65 20 73 70 72 65 61 64 |ls in th|e spread|
|00005e00| 73 68 65 65 74 2e 0a 0a | 4d 69 78 65 64 20 6d 6f |sheet...|Mixed mo|
|00005e10| 64 65 20 72 61 6e 67 65 | 72 73 20 77 6f 72 6b 2c |de range|rs work,|
|00005e20| 20 61 6e 64 20 68 61 76 | 65 20 74 68 65 20 73 79 | and hav|e the sy|
|00005e30| 6e 74 61 78 20 79 6f 75 | 27 64 20 65 78 70 65 63 |ntax you|'d expec|
|00005e40| 74 2e 0a 0a 09 57 69 74 | 68 6f 75 74 20 2d 44 41 |t....Wit|hout -DA|
|00005e50| 30 5f 52 45 46 53 3a 20 | 28 74 68 65 20 64 65 66 |0_REFS: |(the def|
|00005e60| 61 75 6c 74 29 0a 0a 41 | 62 73 6f 6c 75 74 65 20 |ault)..A|bsolute |
|00005e70| 63 65 6c 6c 20 72 65 66 | 65 72 65 6e 63 65 73 20 |cell ref|erences |
|00005e80| 68 61 76 65 20 74 68 65 | 20 66 6f 72 6d 20 52 7b |have the| form R{|
|00005e90| 72 6f 77 5f 6e 75 6d 7d | 43 7b 63 6f 6c 5f 6e 75 |row_num}|C{col_nu|
|00005ea0| 6d 7d 2c 20 61 73 20 69 | 6e 20 52 31 43 31 20 28 |m}, as i|n R1C1 (|
|00005eb0| 74 68 65 0a 74 6f 70 6c | 65 66 74 20 63 65 6c 6c |the.topl|eft cell|
|00005ec0| 20 69 6e 20 74 68 65 20 | 73 68 65 65 74 29 2e 0a | in the |sheet)..|
|00005ed0| 0a 52 65 6c 61 74 69 76 | 65 20 6f 6e 65 73 20 68 |.Relativ|e ones h|
|00005ee0| 61 76 65 20 74 68 65 20 | 66 6f 72 6d 20 52 5b 7b |ave the |form R[{|
|00005ef0| 6f 66 66 73 65 74 7d 5d | 43 5b 7b 6f 66 66 73 65 |offset}]|C[{offse|
|00005f00| 74 7d 5d 2c 20 61 73 20 | 69 6e 20 52 5b 2d 31 5d |t}], as |in R[-1]|
|00005f10| 43 5b 2b 31 5d 20 28 54 | 68 65 0a 63 65 6c 6c 20 |C[+1] (T|he.cell |
|00005f20| 61 62 6f 76 65 20 61 6e | 64 20 74 6f 20 74 68 65 |above an|d to the|
|00005f30| 20 72 69 67 68 74 20 6f | 66 20 74 68 65 20 63 75 | right o|f the cu|
|00005f40| 72 72 65 6e 74 20 63 65 | 6c 6c 29 2e 20 20 41 6e |rrent ce|ll). An|
|00005f50| 20 6f 66 66 73 65 74 20 | 6f 66 20 7a 65 72 6f 2c | offset |of zero,|
|00005f60| 20 63 61 6e 20 62 65 0a | 64 65 6c 65 74 65 64 2c | can be.|deleted,|
|00005f70| 20 61 6c 6f 6e 67 20 77 | 69 74 68 20 69 74 73 20 | along w|ith its |
|00005f80| 73 71 75 61 72 65 2d 62 | 72 61 63 6b 65 74 73 2c |square-b|rackets,|
|00005f90| 20 61 73 20 69 6e 20 52 | 43 5b 2b 31 5d 20 28 74 | as in R|C[+1] (t|
|00005fa0| 68 65 20 63 65 6c 6c 20 | 74 6f 20 74 68 65 20 72 |he cell |to the r|
|00005fb0| 69 67 68 74 0a 6f 66 20 | 74 68 65 20 63 75 72 72 |ight.of |the curr|
|00005fc0| 65 6e 74 20 63 65 6c 6c | 2e 29 0a 0a 4d 69 78 65 |ent cell|.)..Mixe|
|00005fd0| 64 2d 6d 6f 64 65 20 72 | 65 66 65 72 65 6e 63 65 |d-mode r|eference|
|00005fe0| 73 20 61 6c 73 6f 20 77 | 6f 72 6b 20 61 62 6f 75 |s also w|ork abou|
|00005ff0| 74 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 79 6f |t the sa|me as yo|
|00006000| 75 27 64 0a 65 78 70 65 | 63 74 2c 20 61 73 20 69 |u'd.expe|ct, as i|
|00006010| 6e 20 52 34 43 5b 2d 31 | 5d 20 28 74 68 65 20 63 |n R4C[-1|] (the c|
|00006020| 65 6c 6c 20 69 6e 20 72 | 6f 77 20 66 6f 75 72 20 |ell in r|ow four |
|00006030| 74 68 61 74 27 73 20 6f | 6e 65 20 6c 65 66 74 0a |that's o|ne left.|
|00006040| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |of the c|urrent c|
|00006050| 65 6c 6c 2e 29 0a 0a 52 | 61 6e 67 65 73 20 61 72 |ell.)..R|anges ar|
|00006060| 65 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 20 52 7b |e of the| form R{|
|00006070| 72 6f 77 31 7d 3a 7b 72 | 6f 77 32 7d 43 7b 63 6f |row1}:{r|ow2}C{co|
|00006080| 6c 31 7d 3a 7b 63 6f 6c | 32 7d 2c 20 77 68 65 72 |l1}:{col|2}, wher|
|00006090| 65 20 74 68 65 20 72 6f | 77 20 61 6e 64 20 63 6f |e the ro|w and co|
|000060a0| 6c 75 6d 6e 0a 72 65 66 | 65 72 65 6e 63 65 73 20 |lumn.ref|erences |
|000060b0| 6d 61 79 20 62 65 20 65 | 69 74 68 65 72 20 61 62 |may be e|ither ab|
|000060c0| 73 6f 6c 75 74 65 20 6f | 72 20 72 65 6c 61 74 69 |solute o|r relati|
|000060d0| 76 65 2e 20 20 49 66 20 | 7b 72 6f 77 32 7d 3d 3d |ve. If |{row2}==|
|000060e0| 7b 72 6f 77 31 7d 20 6f | 72 0a 7b 63 6f 6c 32 7d |{row1} o|r.{col2}|
|000060f0| 3d 3d 7b 63 6f 6c 31 7d | 2c 20 74 68 65 20 63 6f |=={col1}|, the co|
|00006100| 6c 6f 6e 20 61 6e 64 20 | 74 68 65 20 72 65 64 75 |lon and |the redu|
|00006110| 6e 64 61 6e 74 20 6e 75 | 6d 62 65 72 20 6d 61 79 |ndant nu|mber may|
|00006120| 20 62 65 20 6f 6d 69 74 | 74 65 64 2c 20 61 73 20 | be omit|ted, as |
|00006130| 69 6e 0a 52 31 3a 31 30 | 63 32 20 28 52 6f 77 73 |in.R1:10|c2 (Rows|
|00006140| 20 6f 6e 65 20 74 68 72 | 6f 75 67 68 20 74 65 6e | one thr|ough ten|
|00006150| 20 69 6e 20 63 6f 6c 75 | 6d 6e 20 74 77 6f 29 2e | in colu|mn two).|
|00006160| 0a 0a 4d 69 78 65 64 2d | 6d 6f 64 65 20 72 61 6e |..Mixed-|mode ran|
|00006170| 67 65 72 73 20 77 6f 72 | 6b 2c 20 61 6e 64 20 68 |gers wor|k, and h|
|00006180| 61 76 65 20 74 68 65 20 | 73 79 6e 74 61 78 20 79 |ave the |syntax y|
|00006190| 6f 75 27 64 20 65 78 70 | 65 63 74 2c 20 61 73 20 |ou'd exp|ect, as |
|000061a0| 69 6e 20 52 32 3a 5b 2d | 31 5d 63 33 2e 0a 0a 0a |in R2:[-|1]c3....|
|000061b0| 09 09 4b 65 79 6d 61 70 | 73 3a 0a 0a 4f 6c 65 6f |..Keymap|s:..Oleo|
|000061c0| 20 6e 6f 72 6d 61 6c 6c | 79 20 68 61 73 20 66 69 | normall|y has fi|
|000061d0| 76 65 20 6b 65 79 6d 61 | 70 73 2e 20 20 54 68 65 |ve keyma|ps. The|
|000061e0| 79 20 61 72 65 3a 0a 09 | 6d 61 69 6e 09 54 68 65 |y are:..|main.The|
|000061f0| 20 6d 61 69 6e 20 63 6f | 6d 6d 61 6e 64 20 6c 6f | main co|mmand lo|
|00006200| 6f 70 2e 0a 09 6d 65 74 | 61 09 54 68 65 20 6d 61 |op...met|a.The ma|
|00006210| 69 6e 20 63 6f 6d 6d 61 | 6e 64 20 6c 6f 6f 70 20 |in comma|nd loop |
|00006220| 63 6f 6d 6d 61 6e 64 73 | 20 74 68 61 74 20 61 72 |commands| that ar|
|00006230| 65 20 70 72 65 66 69 78 | 65 64 20 77 69 74 68 0a |e prefix|ed with.|
|00006240| 09 09 45 53 43 61 70 65 | 2e 0a 09 65 64 69 74 09 |..ESCape|...edit.|
|00006250| 52 65 61 64 69 6e 67 20 | 69 6e 70 75 74 20 74 65 |Reading |input te|
|00006260| 78 74 2e 0a 09 65 64 69 | 74 2d 6d 65 74 61 20 49 |xt...edi|t-meta I|
|00006270| 6e 70 75 74 20 74 65 78 | 74 20 63 6f 6d 6d 61 6e |nput tex|t comman|
|00006280| 64 73 20 74 68 61 74 20 | 61 72 65 20 70 72 65 66 |ds that |are pref|
|00006290| 69 78 65 64 20 77 69 74 | 68 20 45 53 43 61 70 65 |ixed wit|h ESCape|
|000062a0| 2e 0a 09 61 6e 73 69 09 | 54 68 65 20 61 6e 73 69 |...ansi.|The ansi|
|000062b0| 20 61 72 72 6f 77 20 6b | 65 79 73 2e 0a 09 64 69 | arrow k|eys...di|
|000062c0| 67 69 74 09 52 65 61 64 | 69 6e 67 20 69 6e 20 61 |git.Read|ing in a|
|000062d0| 20 6e 75 6d 62 65 72 20 | 74 6f 20 72 65 70 65 61 | number |to repea|
|000062e0| 74 20 61 20 63 6f 6d 6d | 61 6e 64 2e 0a 0a 4b 65 |t a comm|and...Ke|
|000062f0| 79 6d 61 70 73 20 6d 61 | 79 20 68 61 76 65 20 61 |ymaps ma|y have a|
|00006300| 20 27 64 65 66 61 75 6c | 74 20 6d 61 70 27 2e 20 | 'defaul|t map'. |
|00006310| 20 49 66 20 61 20 6b 65 | 79 20 69 73 20 70 72 65 | If a ke|y is pre|
|00006320| 73 73 65 64 20 77 68 69 | 63 68 20 64 6f 65 73 20 |ssed whi|ch does |
|00006330| 6e 6f 74 20 68 61 76 65 | 20 61 6e 0a 61 73 73 69 |not have| an.assi|
|00006340| 67 6e 65 64 20 6d 65 61 | 6e 69 6e 67 20 69 6e 20 |gned mea|ning in |
|00006350| 74 68 61 74 20 6d 61 70 | 2c 20 74 68 65 20 6d 61 |that map|, the ma|
|00006360| 70 27 73 20 64 65 66 61 | 75 6c 74 20 6d 61 70 20 |p's defa|ult map |
|00006370| 69 73 20 63 68 65 63 6b | 65 64 2c 20 61 6e 64 20 |is check|ed, and |
|00006380| 74 68 61 74 0a 6d 61 70 | 27 73 20 64 65 66 61 75 |that.map|'s defau|
|00006390| 6c 74 20 6d 61 70 2c 20 | 75 6e 74 69 6c 20 61 20 |lt map, |until a |
|000063a0| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 66 6f 75 6e 64 |command |is found|
|000063b0| 20 6f 72 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f | or ther|e are no|
|000063c0| 20 6d 6f 72 65 20 64 65 | 66 61 75 6c 74 20 6d 61 | more de|fault ma|
|000063d0| 70 73 0a 74 6f 20 73 63 | 61 6e 2e 0a 0a 54 68 65 |ps.to sc|an...The|
|000063e0| 20 65 64 69 74 20 6d 61 | 70 20 64 65 66 61 75 6c | edit ma|p defaul|
|000063f0| 74 73 20 74 6f 20 74 68 | 65 20 6d 61 69 6e 20 6d |ts to th|e main m|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.